async Task ExecuteLedOffCommand(object led) { string ledCommand = led as string; switch (ledCommand.ToLower()) { case "all": FlushTheToiletWebClientAccess.AllLedsOffAsync(); break; case "red": FlushTheToiletWebClientAccess.LedRedOffAsync(); break; case "yellow": FlushTheToiletWebClientAccess.LedYellowOffAsync(); break; case "green": FlushTheToiletWebClientAccess.LedGreenOffAsync(); break; default: break; } }
async Task ExecuteMotorForwardCommand() { FlushTheToiletWebClientAccess.MotorForwardAsync(); }
async Task ExecuteGetDistanceCommand() { Distance = FlushTheToiletWebClientAccess.GetDistance(); }
async Task ExecuteStopMotorCommand() { FlushTheToiletWebClientAccess.MotorStopAsync(); }
private bool GetFlusherStateMachineStatus() { FlusherStateMachineStatus = FlushTheToiletWebClientAccess.GetFlusherStateMachineStatus(); return(!mStopTimer); }
private async Task ExecuteStopFlusherAutomaticCommand() { mStopTimer = true; FlushTheToiletWebClientAccess.StopFlusherStateMachine(); }
private async Task ExecuteStartFlusherAutomaticCommand() { mStopTimer = false; FlushTheToiletWebClientAccess.StartFlusherStateMachine(); Device.StartTimer(TimeSpan.FromMilliseconds(500), () => GetFlusherStateMachineStatus()); }