private async Task NowPlaying() { var smartHouse = new SmartHouseService(); await ShowProgressScreen("Of course"); var result = await smartHouse.GetCurrentSong(); await CortanaResponseShowSong(result); }
private async Task ExecutePandoraCommands(string command) { var pandora = new PandoraService(); var smartHouse = new SmartHouseService(); await ShowProgressScreen($"Starting to {command} song"); switch (command) { case "Play": await smartHouse.Run(UWPLib.Model.SmartHouseCommands.Play); await CompleteMessage(""); break; case "Stop": await pandora.Run(SmartHouse.UWPLib.Model.PandoraCommands.Play); await CompleteMessage(""); break; case "Next": await smartHouse.Run(UWPLib.Model.SmartHouseCommands.Next); await CompleteMessage(""); break; case "Love": await smartHouse.LoveSong(); await CompleteMessage(""); break; case "Hate": await pandora.Run(SmartHouse.UWPLib.Model.PandoraCommands.ThumbDown); await CompleteMessage(""); break; case "Boring": await pandora.Run(SmartHouse.UWPLib.Model.PandoraCommands.Tired); await CompleteMessage(""); break; case "Show": var info = await smartHouse.GetCurrentSong(); await CortanaResponseShowSong(info); break; case "NextStation": var nextInfo = await pandora.Run(SmartHouse.UWPLib.Model.PandoraCommands.NextStation); await CompleteMessage(nextInfo?.Message); break; case "PrevStation": var prevInfo = await pandora.Run(SmartHouse.UWPLib.Model.PandoraCommands.PrevStation); await CompleteMessage(prevInfo?.Message); break; default: LaunchAppInForeground(); break; } }