示例#1
0
        public static void Register(string username, string password)
        {
            var register = new Auth
            {
                Type = AuthType.Register,
                Username = username,
                Password = password
            };

            Send(register);
        }
示例#2
0
        public static void Login(string username, string password)
        {
            var login = new Auth
            {
                Type = AuthType.Login,
                Username = username,
                Password = password
            };

            Send(login);
        }