public ManDetectionModel( IManDetectionService manDetectionService, IManDetectionDistanceSensor manDetectionDistanceSensor) { mManDetectionService = manDetectionService; mManDetectionDistanceSensor = manDetectionDistanceSensor; }
public ToiletFlusherStateMachine( IFlushService flusherMotor, IManDetectionService manDetection, ILedControl ledControl, IIoBrokerDotNet ioBroker) { _ioBroker = ioBroker; mFlusherMotor = flusherMotor; mManDetection = manDetection; mLedControl = ledControl; mStatus = new ToiletStateMachineStatus(); mManDetection.SomeoneDetectedChanged += SomeoneDetectedChangedHandler; mManDetection.SomeoneIsPeeingChanged += SomeoneIsPeeingChangedHandler; ConfigureStateMachine(); _ioBroker.ConnectAsync(TimeSpan.FromSeconds(5)); }