コード例 #1
0
        public async Task <Result> PrevStation()
        {
            var result = await _playerService.PrevStation();

            NotifyClients();
            PushNotification(result.Message);

            return(result);
        }
コード例 #2
0
        public async Task Down()
        {
            var smartHouseState = await SmartHouseService.GetCurrentState();

            if (smartHouseState == SmartHouseState.Pandora)
            {
                var result = await PlayerService.PrevStation();

                NotifyClients();
                PushNotification(result.Message);
            }
            else if (smartHouseState == SmartHouseState.TV)
            {
                await TVService.Down();
            }
        }