public async Task Stop() { var powerStatus = await YamahaService.PowerStatus(); var smartHouseState = await SmartHouseService.GetCurrentState(); if (powerStatus == PowerStatusEnum.StandBy) { PushNotification("Smarthouse is turn off"); return; } if (smartHouseState == SmartHouseState.Pandora) { await PandoraService.StopTcp(); PushNotification("Pianobar has exited"); } else if (smartHouseState == SmartHouseState.Music) { MpdService.Stop(); } else if (smartHouseState == SmartHouseState.TV) { await TVService.Stop(); } }
public async Task <Result> Stop() { return(await PandoraService.StopTcp()); }