public SeasonVm(Season season, IAppContext appContext, TVShowVm tvShowVm) : base(season, appContext) { _season = season; _appContext = appContext; _tvShowVm = tvShowVm; Label = "Season " + season.season; SecondLabel = season.watchedepisodes + "/" + season.episode; Id = season.season; ShowId = season.tvshowid; }
public async Task <TVShowVm> GetTVShow(int tvshowid) { if (_lastTvShow != null && _lastTvShow.ID == tvshowid) { return(_lastTvShow); } var tvshow = await _appContext.XBMC.VideoLibrary.GetTVShowDetails(tvshowid, TVShow.AllFields()); _lastTvShow = new TVShowVm(tvshow.tvshowdetails, _appContext, false); return(_lastTvShow); }