Ejemplo n.º 1
0
    public void DisplayTransaction11()
    {
        User   user  = GlobalState.GetUser();
        string token = GlobalState.GetToken();

        loading.SetActive(true);

        back_button.SetActive(false);

        HistoryController.GetAllTransactions(user, token,
                                             (response) =>
        {
            foreach (var a in response)
            {
                GenerateTransactionItem(a);
            }
            scrollView.verticalNormalizedPosition = 1;
            loading.SetActive(false);
            back_button.SetActive(true);
        },
                                             (error) =>
        {
            Debug.Log(error.StackTrace);
            loading.SetActive(false);
            failed.SetActive(true);
            back_button.SetActive(true);
        }
                                             );
    }