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