Exemplo n.º 1
0
    public void LoggedIn(API_Login_Get instance)
    {
        if (instance.error == "")
        {
            Debug.Log("No Error");
        }
        else
        {
            DisplayError(instance.error);
            return;
        }

        userID = instance.id;

        logInCanvas.SetActive(false);
        welcomeTxt.GetComponent <Text>().text = "Welcome " + instance.firstName;

        API_SearchContacts_Set input = new API_SearchContacts_Set {
            search = "", userId = userID
        };

        api.SearchContacts(input);

        Destroy(welcomeTxt, 5f);
    }
Exemplo n.º 2
0
    public void F**k()
    {
        API_SearchContacts_Set input = new API_SearchContacts_Set {
            search = "", userId = 48
        };

        api.SearchContacts(input);
    }
Exemplo n.º 3
0
 public void SearchContacts(API_SearchContacts_Set set)
 {
     StartCoroutine(Post(CreateApiPostRequest("/SearchContacts.php", set), SearchContacts));
 }