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