コード例 #1
0
 public override bool InterpretResponse(ProcessorInput response)
 {
     if (_interpretResponseAction != null)
     {
         return(_interpretResponseAction(response));
     }
     return(false);
 }
コード例 #2
0
        public override bool InterpretResponse(ProcessorInput response)
        {
            DeviceResult res = response as DeviceResult;

            if (res != null)
            {
                if (CommandId == res.CommandId)
                {
                    return(true);
                }
            }
            return(false);
        }
コード例 #3
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);
        }
コード例 #4
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);
        }
コード例 #5
0
 public override bool InterpretResponse(ProcessorInput response)
 {
     return(true);
 }
コード例 #6
0
ファイル: TestCommand.cs プロジェクト: arielbh/CodeCommander
 public override bool InterpretResponse(ProcessorInput response)
 {
     if (_interpretResponseAction != null) return _interpretResponseAction(response);
     return false;
 }