Inheritance: CodeValue.CodeCommander.ProcessorInput
示例#1
0
        public override bool InterpretResponse(ProcessorInput response)
        {
            DeviceResult res = response as DeviceResult;

            if (res != null)
            {
                if (CommandId == res.CommandId)
                {
                    return(true);
                }
            }
            return(false);
        }
示例#2
0
        public override bool InterpretResponse(ProcessorInput response)
        {
            DeviceResult <string> res = response as DeviceResult <string>;

            if (res != null)
            {
                if (CommandId == res.CommandId)
                {
                    ReturnValue = res.Input;
                    return(true);
                }
            }
            return(false);
        }
示例#3
0
        public override bool InterpretResponse(ProcessorInput response)
        {
            DeviceResult <bool> res = response as DeviceResult <bool>;

            if (res != null)
            {
                if (CommandId == res.CommandId)
                {
                    ReturnValue = res.Input;
                    _mainViewModel.CanConnect = ReturnValue;

                    return(true);
                }
            }
            return(false);
        }