暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CredentialStateResponse.cs 1009B

1234567891011121314151617181920212223242526272829
  1. using AppleAuth.Enums;
  2. using AppleAuth.Interfaces;
  3. using System;
  4. using UnityEngine;
  5. namespace AppleAuth.Native
  6. {
  7. [Serializable]
  8. internal class CredentialStateResponse : ICredentialStateResponse, ISerializationCallbackReceiver
  9. {
  10. public bool _success = false;
  11. public bool _hasCredentialState = false;
  12. public bool _hasError = false;
  13. public int _credentialState = 0;
  14. public AppleError _error = null;
  15. public bool Success { get { return this._success; } }
  16. public CredentialState CredentialState { get { return (CredentialState) this._credentialState; } }
  17. public IAppleError Error { get { return this._error; } }
  18. public void OnBeforeSerialize() { }
  19. public void OnAfterDeserialize()
  20. {
  21. SerializationTools.FixSerializationForObject(ref this._credentialState, this._hasCredentialState);
  22. SerializationTools.FixSerializationForObject(ref this._error, this._hasError);
  23. }
  24. }
  25. }