private void ProcessCommandStateResponse(byte[] packet) { CommandStateResponse response = new CommandStateResponse(packet); UInt32 commandId = response.GetCommandId(); CommandStateResponse.CommandStates commandState = response.GetCommandState(); CommandStateReceived?.Invoke(commandId, commandState); }
public void UpdateExecutedCommandInfo(uint id, CommandStateResponse.CommandStates state) { ExecutedCommandId = id; ExecutedCommandState = state; }
private bool CheckCommandStatus(IRemoteCommand command, CommandStateResponse.CommandStates expectedState) { return(ExecutedCommandId == command.GetId() && ExecutedCommandState == expectedState); }