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