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