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