예제 #1
0
        public Result Tired()
        {
            var result = _playerService.TiredOfThisSong();

            NotifyClients();
            PushNotification("Tired of this song");

            return(result);
        }
예제 #2
0
        public async Task TiredOfThisSong()
        {
            var smartHouseState = await SmartHouseService.GetCurrentState();

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

                NotifyClients();
                PushNotification("Tired of this song");
            }
            else
            {
                NotifyClients();
                PushNotification("This works only for Pandora player");
            }
        }