/// /// ContactInput.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.one import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "ContactInput". */ @DoNotStrip @Keep data class ContactInput( @DoNotStrip @Keep val givenName: String, @DoNotStrip @Keep val familyName: String, @DoNotStrip @Keep val phoneNumbers: Array, @DoNotStrip @Keep val emailAddresses: Array, @DoNotStrip @Keep val postalAddresses: Array? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is ContactInput) return false return Objects.deepEquals(this.givenName, other.givenName) && Objects.deepEquals(this.familyName, other.familyName) && Objects.deepEquals(this.phoneNumbers, other.phoneNumbers) && Objects.deepEquals(this.emailAddresses, other.emailAddresses) && Objects.deepEquals(this.postalAddresses, other.postalAddresses) } override fun hashCode(): Int { return arrayOf( givenName, familyName, phoneNumbers, emailAddresses, postalAddresses ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(givenName: String, familyName: String, phoneNumbers: Array, emailAddresses: Array, postalAddresses: Array?): ContactInput { return ContactInput(givenName, familyName, phoneNumbers, emailAddresses, postalAddresses) } } }