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