Exemplo n.º 1
0
        private void OnClientMessage(ClientCommand command)
        {
            switch (command.Type)
            {
            case ClientCommandType.PIN:
                return;

            case ClientCommandType.PRI:
            case ClientCommandType.MSG:
                buffer.ClearBuffer();
                break;

            case ClientCommandType.STA:
                customStatus = command.Payload.ToObject <ClientSta>();
                SetStatus(customStatus);
                return;
            }
            Send(command);
        }