Beispiel #1
0
        public static void Handle(IClient client, object[] data)
        {
            RemoteChatCommand rcCommand = (RemoteChatCommand)data[1];

            if (rcCommand == RemoteChatCommand.Message)
            {
                NewMessage(client, (string)data[2]);
            }
        }
Beispiel #2
0
        public static void Handle(object[] data)
        {
            RemoteChatCommand command = (RemoteChatCommand)data[1];

            switch (command)
            {
            case RemoteChatCommand.Start:
                StartChat();
                break;

            case RemoteChatCommand.Stop:
                Disconnect();
                break;

            case RemoteChatCommand.Message:
                NewMessage((string)data[2]);
                break;
            }
        }