private void VerificationSignatureRetrieveFailed(string array) { SA.Common.Models.Error error = new SA.Common.Models.Error(array); GK_PlayerSignatureResult res = new GK_PlayerSignatureResult(error); OnPlayerSignatureRetrieveResult(res); }
private void VerificationSignatureRetrieved(string array) { string[] data; data = array.Split(SA.Common.Data.Converter.DATA_SPLITTER); GK_PlayerSignatureResult res = new GK_PlayerSignatureResult(data[0], data[1], data[2], data[3]); OnPlayerSignatureRetrieveResult(res); }
private void VerificationSignatureRetrieveFailed(string array) { ISN_Error error = new ISN_Error(array); GK_PlayerSignatureResult res = new GK_PlayerSignatureResult(error); OnPlayerSignatureRetrieveResult(res); }
private void VerificationSignatureRetrieved(string array) { string[] data; data = array.Split("|" [0]); GK_PlayerSignatureResult res = new GK_PlayerSignatureResult(data[0], data[1], data[2], data[3]); OnPlayerSignatureRetrieveResult(res); }
private void VerificationSignatureRetrieveFailed(string array) { string[] data; data = array.Split("|" [0]); ISN_Error error = new ISN_Error(); error.code = System.Convert.ToInt32(data[0]); error.description = data[1]; GK_PlayerSignatureResult res = new GK_PlayerSignatureResult(error); OnPlayerSignatureRetrieveResult(res); }
void OnPlayerSignatureRetrieveResult(GK_PlayerSignatureResult result) { Debug.Log("OnPlayerSignatureRetrieveResult"); if (result.IsSucceeded) { Debug.Log("PublicKeyUrl: " + result.PublicKeyUrl); Debug.Log("Signature: " + result.Signature); Debug.Log("Salt: " + result.Salt); Debug.Log("Timestamp: " + result.Timestamp); } else { Debug.Log("Error code: " + result.Error.Code); Debug.Log("Error description: " + result.Error.Description); } GameCenterManager.OnPlayerSignatureRetrieveResult -= OnPlayerSignatureRetrieveResult; }
private void VerificationSignatureRetrieved(string array) { string[] data; data = array.Split(IOSNative.DATA_SPLITTER); GK_PlayerSignatureResult res = new GK_PlayerSignatureResult(data[0], data[1], data[2], data[3]); OnPlayerSignatureRetrieveResult(res); }
void OnPlayerSignatureRetrieveResult (GK_PlayerSignatureResult result) { Debug.Log("OnPlayerSignatureRetrieveResult"); if(result.IsSucceeded) { Debug.Log("PublicKeyUrl: " + result.PublicKeyUrl); Debug.Log("Signature: " + result.Signature); Debug.Log("Salt: " + result.Salt); Debug.Log("Timestamp: " + result.Timestamp); } else { Debug.Log("Error code: " + result.Error.Code); Debug.Log("Error description: " + result.Error.Description); } GameCenterManager.OnPlayerSignatureRetrieveResult -= OnPlayerSignatureRetrieveResult; }