/// /// MailAuthConfig.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.mailengine import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "MailAuthConfig". */ @DoNotStrip @Keep data class MailAuthConfig( @DoNotStrip @Keep val type: MailAuthType, @DoNotStrip @Keep val user: String, @DoNotStrip @Keep val password: String?, @DoNotStrip @Keep val accessToken: String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is MailAuthConfig) return false return Objects.deepEquals(this.type, other.type) && Objects.deepEquals(this.user, other.user) && Objects.deepEquals(this.password, other.password) && Objects.deepEquals(this.accessToken, other.accessToken) } override fun hashCode(): Int { return arrayOf( type, user, password, accessToken ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(type: MailAuthType, user: String, password: String?, accessToken: String?): MailAuthConfig { return MailAuthConfig(type, user, password, accessToken) } } }