Пример #1
0
        public ResponseData DoCommand(string command)
        {
            Sentence commandMessage = new Sentence();

            commandMessage.Add(new CommandWord(command));
            SendMessage(commandMessage);

            return(ResponseDataFactory.createResponseData(ReceiveResponse()));
        }
Пример #2
0
        public ResponseData DoCommand(string command, Dictionary <string, string> attributes)
        {
            Sentence commandMessage = new Sentence();

            commandMessage.Add(new CommandWord(command));

            foreach (KeyValuePair <string, string> attribute in attributes)
            {
                commandMessage.Add(new AttributeWord(attribute));
            }

            SendMessage(commandMessage);

            return(ResponseDataFactory.createResponseData(ReceiveResponse()));
        }
Пример #3
0
        public ResponseData DoCommand(CommandBuilder builder)
        {
            SendMessage(builder.Sentence);

            return(ResponseDataFactory.createResponseData(ReceiveResponse()));
        }