Ejemplo n.º 1
0
        public bool Reconnect(string login, string key, string email)
        {
            var packet = new ModelLogin()
            {
                Login = login, KeyReconnect = key, Email = email
            };
            var good = TransStatus(packet, (int)PackageType.Request3Login, (int)PackageType.Response4Login);

            if (good)
            {
                IsLogined = true;
            }
            return(good);
        }
Ejemplo n.º 2
0
        public bool Login(string login, string pass)
        {
            var packet = new ModelLogin()
            {
                Login = login, Pass = pass
            };
            var good = TransStatus(packet, 3, 4);

            if (good)
            {
                IsLogined = true;
            }
            return(good);
        }
Ejemplo n.º 3
0
        public bool Login(string login, string pass, string email)
        {
            var packet = new ModelLogin()
            {
                Login = login, Pass = pass, Email = email
            };
            var good = TransStatus(packet, (int)PackageType.Request3Login, (int)PackageType.Response4Login);

            if (good)
            {
                IsLogined = true;
            }
            return(good);
        }
Ejemplo n.º 4
0
        public bool Reconnect(string login, string key)
        {
            var packet = new ModelLogin()
            {
                Login = login, KeyReconnect = key
            };
            var good = TransStatus(packet, 3, 4);

            if (good)
            {
                IsLogined = true;
            }
            return(good);
        }