public async Task <PandoraResult> NowPlaying(bool lastFm = true) { var state = await _smartHouseService.GetCurrentState(); switch (state) { case SmartHouseState.Pandora: return(await _playerService.GetNowPlaying()); case SmartHouseState.Music: return(await _mpdService.GetNowPlaying(lastFm)); default: return(null); } }