static void OnGetAuthSignature(UnityWebRequest request, Action <string> projectAuthSignature) { if (request.downloadHandler.isDone && request.IsResultTransferSuccess()) { try { projectAuthSignature?.Invoke(NetworkingUtils.GetValueFromJsonDictionary(request.downloadHandler.text, k_AuthSignatureKeyJsonLabel)); } catch (Exception ex) { Debug.LogException(ex); } } }
void HandleCompletedSubmitResponse(UnityWebRequest completedRequest) { GooglePlayRevenueTrackingKeyState keyState; if (completedRequest.IsResultTransferSuccess()) { keyState = GooglePlayRevenueTrackingKeyState.Verified; } else if (completedRequest.IsResultProtocolError()) { keyState = InterpretKeyStateFromProtocolError(completedRequest.responseCode); } else { keyState = GooglePlayRevenueTrackingKeyState.InvalidFormat; } m_SetGooglePlayKeyCallback(keyState); }
bool IsGoogleKeyRequestResultSuccess() { return(m_GetGoogleKeyRequest.IsResultTransferSuccess()); }