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(); }
public void ChangeStatus(GGStatus status, string description) { StatusPacket packet = new StatusPacket(status, description); this.packetManager.AddPacket(packet); }
public void LogOn(GGStatus status) { this.loginStatus = status; this.connector.Open(); }