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