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();
 }
示例#5
0
 private bool GetFlusherStateMachineStatus()
 {
     FlusherStateMachineStatus = FlushTheToiletWebClientAccess.GetFlusherStateMachineStatus();
     return(!mStopTimer);
 }
示例#6
0
 private async Task ExecuteStopFlusherAutomaticCommand()
 {
     mStopTimer = true;
     FlushTheToiletWebClientAccess.StopFlusherStateMachine();
 }
示例#7
0
 private async Task ExecuteStartFlusherAutomaticCommand()
 {
     mStopTimer = false;
     FlushTheToiletWebClientAccess.StartFlusherStateMachine();
     Device.StartTimer(TimeSpan.FromMilliseconds(500), () => GetFlusherStateMachineStatus());
 }