Beispiel #1
0
 public IResponse HandleRequest(GrillInfoRequest request) => new GrillInfoResponse(
     grillTemp: CurrentGrillTemp,
     probeTemp: CurrentProbeTemp,
     grillSetTemp: TargetGrillTemp,
     probeSetTemp: TargetProbeTemp,
     grillState: IsOn ? GrillState.ON : GrillState.OFF
     );
Beispiel #2
0
 public IResponse HandleRequest(GrillInfoRequest request) => new GrillInfoResponse(
     grillTemp: CurrentGrillTemp,
     probeTemp: CurrentProbeTemp,
     grillSetTemp: TargetGrillTemp,
     probeSetTemp: TargetProbeTemp,
     grillState: IsOn ? GrillState.ON : GrillState.OFF,
     warnCode: onCounter > 0 && onCounter % 3 == 0 ? WarnCode.LOW_PELLET : WarnCode.NONE
     );