/// /// MailAttachmentStruct.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 import com.margelo.nitro.core.ArrayBuffer /** * Represents the JavaScript object/struct "MailAttachmentStruct". */ @DoNotStrip @Keep data class MailAttachmentStruct( @DoNotStrip @Keep val partId: String?, @DoNotStrip @Keep val filename: String?, @DoNotStrip @Keep val mimeType: String, @DoNotStrip @Keep val size: Double, @DoNotStrip @Keep val contentId: String?, @DoNotStrip @Keep val isInline: Boolean, @DoNotStrip @Keep val data: ArrayBuffer? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is MailAttachmentStruct) return false return Objects.deepEquals(this.partId, other.partId) && Objects.deepEquals(this.filename, other.filename) && Objects.deepEquals(this.mimeType, other.mimeType) && Objects.deepEquals(this.size, other.size) && Objects.deepEquals(this.contentId, other.contentId) && Objects.deepEquals(this.isInline, other.isInline) && Objects.deepEquals(this.data, other.data) } override fun hashCode(): Int { return arrayOf( partId, filename, mimeType, size, contentId, isInline, data ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(partId: String?, filename: String?, mimeType: String, size: Double, contentId: String?, isInline: Boolean, data: ArrayBuffer?): MailAttachmentStruct { return MailAttachmentStruct(partId, filename, mimeType, size, contentId, isInline, data) } } }