驱蚊app
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

33 rader
1.3 KiB

  1. using AppleAuth.Interfaces;
  2. using System;
  3. using UnityEngine;
  4. namespace AppleAuth.Native
  5. {
  6. [Serializable]
  7. internal class LoginWithAppleIdResponse : ILoginWithAppleIdResponse, ISerializationCallbackReceiver
  8. {
  9. public bool _success = false;
  10. public bool _hasAppleIdCredential = false;
  11. public bool _hasPasswordCredential = false;
  12. public bool _hasError = false;
  13. public AppleIDCredential _appleIdCredential = null;
  14. public PasswordCredential _passwordCredential = null;
  15. public AppleError _error = null;
  16. public bool Success { get { return this._success; } }
  17. public IAppleError Error { get { return this._error; } }
  18. public IAppleIDCredential AppleIDCredential { get { return this._appleIdCredential; } }
  19. public IPasswordCredential PasswordCredential { get { return this._passwordCredential; } }
  20. public void OnBeforeSerialize() { }
  21. public void OnAfterDeserialize()
  22. {
  23. SerializationTools.FixSerializationForObject(ref this._error, this._hasError);
  24. SerializationTools.FixSerializationForObject(ref this._appleIdCredential, this._hasAppleIdCredential);
  25. SerializationTools.FixSerializationForObject(ref this._passwordCredential, this._hasPasswordCredential);
  26. }
  27. }
  28. }