public async Task <Result> PrevStation() { var result = await _playerService.PrevStation(); NotifyClients(); PushNotification(result.Message); return(result); }
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(); } }