/// /// MailOutgoingMessage.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 "MailOutgoingMessage". */ @DoNotStrip @Keep data class MailOutgoingMessage( @DoNotStrip @Keep val from: MailAddressStruct?, @DoNotStrip @Keep val to: Array, @DoNotStrip @Keep val cc: Array?, @DoNotStrip @Keep val bcc: Array?, @DoNotStrip @Keep val replyTo: Array?, @DoNotStrip @Keep val subject: String, @DoNotStrip @Keep val text: String?, @DoNotStrip @Keep val html: String?, @DoNotStrip @Keep val attachments: Array?, @DoNotStrip @Keep val headers: Map?, @DoNotStrip @Keep val inReplyTo: String?, @DoNotStrip @Keep val references: Array? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is MailOutgoingMessage) return false return Objects.deepEquals(this.from, other.from) && Objects.deepEquals(this.to, other.to) && Objects.deepEquals(this.cc, other.cc) && Objects.deepEquals(this.bcc, other.bcc) && Objects.deepEquals(this.replyTo, other.replyTo) && Objects.deepEquals(this.subject, other.subject) && Objects.deepEquals(this.text, other.text) && Objects.deepEquals(this.html, other.html) && Objects.deepEquals(this.attachments, other.attachments) && Objects.deepEquals(this.headers, other.headers) && Objects.deepEquals(this.inReplyTo, other.inReplyTo) && Objects.deepEquals(this.references, other.references) } override fun hashCode(): Int { return arrayOf( from, to, cc, bcc, replyTo, subject, text, html, attachments, headers, inReplyTo, references ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(from: MailAddressStruct?, to: Array, cc: Array?, bcc: Array?, replyTo: Array?, subject: String, text: String?, html: String?, attachments: Array?, headers: Map?, inReplyTo: String?, references: Array?): MailOutgoingMessage { return MailOutgoingMessage(from, to, cc, bcc, replyTo, subject, text, html, attachments, headers, inReplyTo, references) } } }