Exemplo n.º 1
0
        public void Login()
        {
            Debug.Log("Pressed login button");
            userName = userNameInput.text;

            if (string.IsNullOrEmpty(userName) || string.IsNullOrEmpty(appId))
            {
                Debug.LogError("We need a username and appId to login");
                return;
            }

            Debug.Log("Before calling rtm");
            rtm.Login(appId, token, userName);
        }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     username = tbAccountName.Text;
     rtm.Login(APPID, null, username);
     SendMessageToChat("user " + tbAccountName.Text + " login status: " + rtm.LoggedIn);
 }