public UnitResponse ProcessCommand(object _command) { var command = Compatibility.Check<IDWMCommand>(this,_command); if (command.DifWheelMovement == null) return UnitResponse.Denied(); this.movement = command.DifWheelMovement; return UnitResponse.Accepted(command.DifWheelMovement.Duration); }
public UnitResponse ProcessCommand(object _command) { var command = Compatibility.Check <IDWMCommand>(this, _command); if (command.DifWheelMovement == null) { return(UnitResponse.Denied()); } this.movement = command.DifWheelMovement; return(UnitResponse.Accepted(command.DifWheelMovement.Duration)); }