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