/// /// MailAccountConfig.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 "MailAccountConfig". */ @DoNotStrip @Keep data class MailAccountConfig( @DoNotStrip @Keep val imap: MailServerConfig, @DoNotStrip @Keep val smtp: MailServerConfig?, @DoNotStrip @Keep val auth: MailAuthConfig, @DoNotStrip @Keep val connectionTimeoutMs: Double?, @DoNotStrip @Keep val id: String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is MailAccountConfig) return false return Objects.deepEquals(this.imap, other.imap) && Objects.deepEquals(this.smtp, other.smtp) && Objects.deepEquals(this.auth, other.auth) && Objects.deepEquals(this.connectionTimeoutMs, other.connectionTimeoutMs) && Objects.deepEquals(this.id, other.id) } override fun hashCode(): Int { return arrayOf( imap, smtp, auth, connectionTimeoutMs, id ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(imap: MailServerConfig, smtp: MailServerConfig?, auth: MailAuthConfig, connectionTimeoutMs: Double?, id: String?): MailAccountConfig { return MailAccountConfig(imap, smtp, auth, connectionTimeoutMs, id) } } }