Exemplo n.º 1
0
 /// <summary>
 /// Standard, reusable error callback
 /// </summary>
 /// <param name="error">Error.</param>
 public static void PlayFabErrorCallback(PlayFab.PlayFabError error)
 {
     if (OnPlayFabCallbackError != null)
     {
         OnPlayFabCallbackError(error.ErrorMessage, PlayFabAPIMethods.Generic, MessageDisplayStyle.error);
     }
 }
Exemplo n.º 2
0
    protected IEnumerator titleDataQuerry(GetTitleDataRequest request)
    {
        wait = true;

        PlayFabClientAPI.GetTitleData(request, (result) =>
        {
            Debug.Log("Got title data:");
            if ((result.Data == null) || (result.Data.Count == 0))
            {
                Debug.Log("No title data available");
            }
            else
            {
                succesfullTitleDataQuerry(result);
            }
            querrySuccesfull = true;
            wait = false;
        },
        (error) => {
            failedTitleDataQuerry(error);
            this.error = error;
            querrySuccesfull = false;
            wait = false;
        });

        while (wait)
        { yield return null; }
    }
 private void ActionNode13_errorCallback(PlayFab.PlayFabError error) {
     ActionNode13_error = error;
     ActionNode18_message = ActionNode13_error.ErrorMessage;
     // ActionNode
     // Visit uFrame.Actions.DebugLibrary.LogMessage
     uFrame.Actions.DebugLibrary.LogMessage(ActionNode18_message);
 }
 private void ActionNode13_errorCallback(PlayFab.PlayFabError error)
 {
     ActionNode13_error   = error;
     ActionNode18_message = ActionNode13_error.ErrorMessage;
     // ActionNode
     // Visit uFrame.Actions.DebugLibrary.LogMessage
     uFrame.Actions.DebugLibrary.LogMessage(ActionNode18_message);
 }
Exemplo n.º 5
0
    void OnPlayfabError(PlayFabError error)
    {

        Debug.Log(error.Error.ToString());
        Debug.Log(error.ErrorMessage);
        Debug.Log(error.ErrorDetails);

    }
Exemplo n.º 6
0
 /// <summary>
 /// Handles the result of the login message.
 /// </summary>
 /// <param name="error">Content of the error, if any.</param>
 /// <param name="textMessage">Optional text message.</param>
 private void OnLoginResult(PlayFabError error, string textMessage)
 {
     loginProgressText.text = textMessage;
     if (error != null)
     {
         loginInProgress.SetActive(false);
         errorText.gameObject.SetActive(true);
         errorText.text = error.ErrorMessage;
     }
     else
     {
         this.Deactivate();
     }
 } 
    public static void HandlePlayFabError(PlayFabError error)
    {
        Debug.Log(error.ErrorMessage);
        if (error.ErrorDetails == null)
        {
            return;
        }

        foreach (var kvp in error.ErrorDetails)
        {
            foreach (var s in kvp.Value)
            {
                Debug.Log(s);
            }
        }
    }
 public static void HandlePlayFabError(PlayFabError error)
 {
     Debug.Log(error.ErrorMessage);
     if (error.ErrorDetails != null)
     {
         foreach (var ed in error.ErrorDetails)
         {
             Debug.Log(string.Format("ErrorDetail: {0}", ed));
             var kvp = ed.Value;
             foreach (var e in kvp )
             {
                 Debug.Log(string.Format("ErrorInfo: {0}",e));
             }
         }
     }
 }
Exemplo n.º 9
0
    public static IEnumerator makeQuerry(List<Dao> daoList)
    {
        succsesfull = true;
        foreach (Dao dao in daoList)
        {
            if (succsesfull)
            {
                yield return dao.makeQuerry();

                if (!dao.isQuerrySuccessfull())
                {
                    succsesfull = false;
                    error = dao.getError();
                    Debug.Log("Querry error");
                    Debug.Log(error.ErrorMessage);
                }
            }
        }
    }
Exemplo n.º 10
0
        void InventoryResponseCallback(PlayFabPlayerInventoryCore result, PlayFab.PlayFabError error)
        {
            PlayFab.Player.Inventory.OnResponse -= InventoryResponseCallback;

            if (error == null)
            {
                void Action()
                {
                    Popup.Hide();

                    Hide();
                }

                Popup.Show(Core.Localization.Phrases.Get("Purchase Successful"), Action, Core.Localization.Phrases.Get("Okay"));
            }
            else
            {
                RaiseError(error);
            }
        }
Exemplo n.º 11
0
 private void loginFail(PlayFabError error)
 {
     switch (error.Error)
     {
         case PlayFabErrorCode.InvalidParams:
             errorText.text = "Parametros invalidos (Cod. 1000)";
             break;
         case PlayFabErrorCode.InvalidTitleId:
             errorText.text = "TitleId invalido (Cod.1004)";
             break;
         case PlayFabErrorCode.AccountNotFound:
             errorText.text = "Conta nao encontrada (Cod. 1001)";
             break;
         case PlayFabErrorCode.AccountBanned:
             errorText.text = "Erro de conta (Cod. 1002)";
             break;
         case PlayFabErrorCode.InvalidUsernameOrPassword:
             errorText.text = "Combinação de usuario e senha invalidos";
             break;
         default:
             break;
     }        
 }
 void OnUserInventoryLoadError(PlayFabError error)
 {
     Debug.Log("Inventory load error: " + error.Error + " " + error.ErrorMessage);
 }
Exemplo n.º 13
0
	void OnLoginError(PlayFabError error)
	{
		Debug.Log("Login error : " + error.ErrorMessage);

	//	if (loginFinished != null)
	//		loginFinished(false, error.ErrorMessage);
	}
 void OnValidateError(PlayFabError error)
 {
     Debug.Log("Google Play purchase validation error: " + error.Error + " " + error.ErrorMessage);
 }
Exemplo n.º 15
0
	private void onLoginError(PlayFabError error)
	{
		Debug.Log(string.Format("Error {0}: {1}", error.HttpCode, error.ErrorMessage));
	}
Exemplo n.º 16
0
	void login_after_register_failed(PlayFabError error){
		print ("failure!!");
	}
Exemplo n.º 17
0
 private void OnRegisterResult(PlayFabError error, string textMessage)
 {
     Debug.Log(error.ErrorMessage);
 } 
 private void OnPlayFabError(PlayFabError error)
 {
     Debug.Log ("Got an error: " + error.ErrorMessage);
 }
Exemplo n.º 19
0
 private void Callback_RegisterUserFailure(PlayFab.PlayFabError error)
 {
     Debug.LogWarning("Something went wrong with Account Creation");
     Debug.LogError("Here's some debug information:");
     Debug.LogError(error.GenerateErrorReport());
 }
 private void OnLoginError(PlayFabError error)
 {
     this.callStatus = string.Format("Error {0}: {1}", error.HttpCode, error.ErrorMessage);
     Debug.Log(callStatus);
 }
Exemplo n.º 21
0
        public static void InvokeResponse(string urlPath, int callId, object request, object result, PlayFabError error, object customData)
        {
            ResponseParams[0] = urlPath;
            ResponseParams[1] = callId; // Boxing :(
            ResponseParams[2] = request;
            ResponseParams[3] = result;
            ResponseParams[4] = error;
            ResponseParams[5] = customData;

            InvokeHelper(ApiResponseHandlers, urlPath, ResponseParams);
            InvokeHelper(ApiResponseHandlers, GLOBAL_KEY, ResponseParams);
        }
Exemplo n.º 22
0
 // A standard error callback that prints out any errors to the screen and to the console.
 void OnPlayFabError(PlayFabError error)
 {
     string message = string.Format("Error {0}: {1}", error.HttpCode, error.ErrorMessage);
     this.cloudScriptResponse.text = message;
     Debug.Log(message);
 }
Exemplo n.º 23
0
 void OnPlayFabError(PlayFabError error)
 {
     OnError(error.ErrorMessage.ToString());
 }
 /// <summary>
 /// Callback used to handle push notification registration error.
 /// </summary>
 /// <param name="error">Error details.</param>
 void OnRegisterForPushNotificationError(PlayFabError error)
 {
     Debug.LogError("Error registering for push notification. Error: " + error.Error + " " + error.ErrorMessage);
 }
Exemplo n.º 25
0
 public void PlayFabErrorCallback(PlayFab.PlayFabError error)
 {
     Debug.Log("PlayFabErrorCallback: " + error.ErrorMessage);
     Loading.SetActive(false);
     UpdateDisplayName.SetActive(true);
 }
Exemplo n.º 26
0
	private void onPlayFabError (PlayFabError error) 
	{
		Debug.Log (error.ErrorMessage); 
	} 
Exemplo n.º 27
0
 public void PlayFabErrorCallback(PlayFab.PlayFabError error)
 {
     Loading.SetActive(false);
     Debug.Log("PlayFabErrorCallback: " + error.ErrorMessage);
 }
Exemplo n.º 28
0
 void OnAddDataError(PlayFabError error)
 {
     Debug.Log("Add data error: " + error.Error + " " + error.ErrorMessage);
 }
Exemplo n.º 29
0
 private void OnSharedError(PlayFab.PlayFabError error)
 {
     Debug.LogError(error.GenerateErrorReport());
 }
 void OnPlayFabError(PlayFabError error)
 {
     returnedError = true;
     Debug.Log ("Got an error: " + error.Error);
     if ((error.Error == PlayFabErrorCode.InvalidParams && error.ErrorDetails.ContainsKey("Password")) || (error.Error == PlayFabErrorCode.InvalidPassword))
     {
         errorLabel = invalidPassword;
     }
     else if ((error.Error == PlayFabErrorCode.InvalidParams && error.ErrorDetails.ContainsKey("Username")) || (error.Error == PlayFabErrorCode.InvalidUsername))
     {
         errorLabel = invalidUsername;
     }
     else if (error.Error == PlayFabErrorCode.EmailAddressNotAvailable)
     {
         errorLabel = emailNotAvailable;
     }
     else if (error.Error == PlayFabErrorCode.UsernameNotAvailable)
     {
         errorLabel = usernameNotAvailable;
     }
 }
 public void OnRecoveryEmailFailed(PlayFab.PlayFabError error)
 {
     Debug.LogError(error.GenerateErrorReport());
 }
Exemplo n.º 32
0
	void login_failed(PlayFabError error){
		print ("failure!!");
	}
 void OnItemConsumeError(PlayFabError error)
 {
     Debug.Log("Consume item error: " + error.Error + " " + error.ErrorMessage);
 }
Exemplo n.º 34
0
	void register_failed(PlayFabError error){
		print ("failure!!");
	}
 void OnDataUpdateError(PlayFabError error)
 {
     Debug.Log("Update data error: " + error.Error + " " + error.ErrorMessage);
 }
Exemplo n.º 36
0
 private void Callback_LoginFailure(PlayFab.PlayFabError error)
 {
     Debug.LogWarning("Something went wrong with Login");
     Debug.LogError("Here's some debug information:");
     Debug.LogError(error.GenerateErrorReport());
 }
        public static void InvokeResponse(string urlPath, int callId, object request, object result, PlayFabError error, object customData)
        {
            ResponseParams[0] = urlPath;
            ResponseParams[1] = callId; // Boxing :(
            ResponseParams[2] = request;
            ResponseParams[3] = result;
            ResponseParams[4] = error;
            ResponseParams[5] = customData;

            InvokeHelper(ApiResponseHandlers, urlPath, ResponseParams);
            InvokeHelper(ApiResponseHandlers, GLOBAL_KEY, ResponseParams);
        }
Exemplo n.º 38
0
	void OnApiCallError(PlayFabError err)
	{
		string http = string.Format("HTTP:{0}", err.HttpCode);
		string message = string.Format("ERROR:{0} -- {1}", err.Error, err.ErrorMessage);
		string details = string.Empty;
		
		if(err.ErrorDetails != null)
		{
			foreach(var detail in err.ErrorDetails)
			{
				details += string.Format("{0} \n", detail.ToString());
			}
		}
		
		Debug.LogError(string.Format("{0}\n {1}\n {2}\n", http, message, details));
	}
Exemplo n.º 39
0
	static void save_user_data_failed(PlayFabError error){
		print ("failure!! "+ error.ErrorMessage);
	}
	// Generic PlayFab callback for errors.
	void OnPlayFabError(PlayFabError error)
	{
		Debug.Log(error.ErrorMessage);
	}
Exemplo n.º 41
0
        public static void InvokeResponse(string urlPath, int callId, object request, object result, PlayFabError error, object customData)
        {
            HashSet <object> instances;

            ResponseParams[0] = urlPath;
            ResponseParams[1] = callId; // Boxing :(
            ResponseParams[2] = request;
            ResponseParams[3] = result;
            ResponseParams[4] = error;
            ResponseParams[5] = customData;
            HashSet <MethodInfo> methodInfos;

            if (ApiResponseHandlers.TryGetValue(urlPath, out methodInfos))
            {
                foreach (var methodInfo in methodInfos)
                {
                    CallbackInstances.TryGetValue(methodInfo, out instances);
                    if (instances == null)
                    {
                        methodInfo.Invoke(null, ResponseParams);
                    }
                    else
                    {
                        foreach (object instance in instances)
                        {
                            if (CheckInstance(instance))
                            {
                                methodInfo.Invoke(instance, ResponseParams);
                            }
                        }
                    }
                }
            }
            if (ApiResponseHandlers.TryGetValue(GLOBAL_KEY, out methodInfos))
            {
                foreach (var methodInfo in methodInfos)
                {
                    CallbackInstances.TryGetValue(methodInfo, out instances);
                    if (instances == null)
                    {
                        methodInfo.Invoke(null, ResponseParams);
                    }
                    else
                    {
                        foreach (object instance in instances)
                        {
                            if (CheckInstance(instance))
                            {
                                methodInfo.Invoke(instance, ResponseParams);
                            }
                        }
                    }
                }
            }
        }