Ejemplo n.º 1
0
        public async void RequestRegister(String id, String pw, String name)
        {
            Req0002 req = new Req0002()
            {
                UserID = id, Password = pw, UserName = name
            };
            Res0002 res = await GGTHubProxy.Invoke <Res0002>("RequestRegister", req);

            Packet0002Received?.Invoke(this, new Packet0002ReceivedEventArgs(req, res));
        }
Ejemplo n.º 2
0
        public Res0002 RequestRegister(Req0002 req)
        {
            Boolean result = Singleton <DatabaseService> .Instance.InsertUserInfo(req.UserID, req.Password, req.UserName);

            Res0002 res = new Res0002()
            {
                Request = req, IsRegisterd = result, Message = "회원가입 성공"
            };

            return(res);
        }