/// /// OneTapSuccessData.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.nitrogooglesignin import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects import com.margelo.nitro.core.NullType /** * Represents the JavaScript object/struct "OneTapSuccessData". */ @DoNotStrip @Keep data class OneTapSuccessData( @DoNotStrip @Keep val user: OneTapUser, @DoNotStrip @Keep val scopes: Array, @DoNotStrip @Keep val idToken: String, @DoNotStrip @Keep val serverAuthCode: Variant_NullType_String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is OneTapSuccessData) return false return Objects.deepEquals(this.user, other.user) && Objects.deepEquals(this.scopes, other.scopes) && Objects.deepEquals(this.idToken, other.idToken) && Objects.deepEquals(this.serverAuthCode, other.serverAuthCode) } override fun hashCode(): Int { return arrayOf( user, scopes, idToken, serverAuthCode ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(user: OneTapUser, scopes: Array, idToken: String, serverAuthCode: Variant_NullType_String?): OneTapSuccessData { return OneTapSuccessData(user, scopes, idToken, serverAuthCode) } } }