Пример #1
0
        private void ProcessCommandStateResponse(byte[] packet)
        {
            CommandStateResponse response = new CommandStateResponse(packet);
            UInt32 commandId = response.GetCommandId();

            CommandStateResponse.CommandStates commandState = response.GetCommandState();

            CommandStateReceived?.Invoke(commandId, commandState);
        }
Пример #2
0
 public void UpdateExecutedCommandInfo(uint id, CommandStateResponse.CommandStates state)
 {
     ExecutedCommandId    = id;
     ExecutedCommandState = state;
 }
Пример #3
0
 private bool CheckCommandStatus(IRemoteCommand command, CommandStateResponse.CommandStates expectedState)
 {
     return(ExecutedCommandId == command.GetId() && ExecutedCommandState == expectedState);
 }