/// /// ContactInfo.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 "ContactInfo". */ @DoNotStrip @Keep data class ContactInfo( @DoNotStrip @Keep val identifier: String, @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 ContactInfo) return false return Objects.deepEquals(this.identifier, other.identifier) && 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( identifier, givenName, familyName, phoneNumbers, emailAddresses, postalAddresses ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(identifier: String, givenName: String, familyName: String, phoneNumbers: Array, emailAddresses: Array, postalAddresses: Array): ContactInfo { return ContactInfo(identifier, givenName, familyName, phoneNumbers, emailAddresses, postalAddresses) } } }