public Result Tired() { var result = _playerService.TiredOfThisSong(); NotifyClients(); PushNotification("Tired of this song"); return(result); }
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"); } }