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