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