Example #1
0
        public async void SetDescription(string status, string info)
        {
            try
            {
                await connection.SendingPacket(xmlCreator.StatusUpdate_REQ(null, info, out string rid));

                xmlInterpreter.StatusError(GetResponse(rid));
            }
            catch
            {
                OnDeadConnection.Invoke(this);
            }
        }
Example #2
0
        public async void SetStatus(Status status)
        {
            try
            {
                await connection.SendingPacket(xmlCreator.StatusUpdate_REQ(status.ToString(), null, out string rid));

                if (xmlInterpreter.StatusError(GetResponse(rid)))
                {
                    OnDeadConnection.Invoke(this);
                }
            }
            catch
            {
                OnDeadConnection.Invoke(this);
            }
        }