Esempio n. 1
0
        public void LogOut(string description)
        {
            GGStatus status = String.IsNullOrEmpty(description) ? GGStatus.NotAvailable :
                              GGStatus.NotAvailableDescription;
            StatusPacket packet = new StatusPacket(status, description);

            this.packetManager.AddPacket(packet);
            this.State = State.Disconnected;
            this.packetManager.Stop();
            this.connector.Close();
        }
Esempio n. 2
0
        public void ChangeStatus(GGStatus status, string description)
        {
            StatusPacket packet = new StatusPacket(status, description);

            this.packetManager.AddPacket(packet);
        }
Esempio n. 3
0
 public void LogOn(GGStatus status)
 {
     this.loginStatus = status;
     this.connector.Open();
 }