LoginGUI.Login C# (CSharp) 메소드

Login() 개인적인 메소드

private Login ( ) : void
리턴 void
    void Login()
    {
        string url = "http://114.113.202.141:3088";
        pclient = new PomeloClient(url);
        pclient.init();
        JsonObject userMessage = new JsonObject();
        userMessage.Add("uid", userName);
        pclient.request("gate.gateHandler.queryEntry", userMessage, (data)=>{
            System.Object code = null;
            if(data.TryGetValue("code", out code)){
                if(Convert.ToInt32(code) == 500) {
                    return;
                } else {
                    pclient.disconnect();
                    pclient = null;
                    System.Object host, port;
                    if (data.TryGetValue("host", out host) && data.TryGetValue("port", out port)) {
                        pclient = new PomeloClient("http://" + "114.113.202.141" + ":" + port.ToString());
                        pclient.init();
                        Entry();
                    }
                }
            }
        });
    }