killapp/Assets/AppleAuth/Runtime/Native/LoginWithAppleIdResponse.cs

33 lines
1.3 KiB
C#
Raw Normal View History

2026-06-18 09:38:23 +08:00
using AppleAuth.Interfaces;
using System;
using UnityEngine;
namespace AppleAuth.Native
{
[Serializable]
internal class LoginWithAppleIdResponse : ILoginWithAppleIdResponse, ISerializationCallbackReceiver
{
public bool _success = false;
public bool _hasAppleIdCredential = false;
public bool _hasPasswordCredential = false;
public bool _hasError = false;
public AppleIDCredential _appleIdCredential = null;
public PasswordCredential _passwordCredential = null;
public AppleError _error = null;
public bool Success { get { return this._success; } }
public IAppleError Error { get { return this._error; } }
public IAppleIDCredential AppleIDCredential { get { return this._appleIdCredential; } }
public IPasswordCredential PasswordCredential { get { return this._passwordCredential; } }
public void OnBeforeSerialize() { }
public void OnAfterDeserialize()
{
SerializationTools.FixSerializationForObject(ref this._error, this._hasError);
SerializationTools.FixSerializationForObject(ref this._appleIdCredential, this._hasAppleIdCredential);
SerializationTools.FixSerializationForObject(ref this._passwordCredential, this._hasPasswordCredential);
}
}
}