public async Task Init() { var listMTVS = await _SeasonService.Get <List <TvshowSeason> >(new TvshowSeasonSearchRequest { MovieAndTvshowId = MTVSId }); SeasonsList.Clear(); foreach (var mtvs in listMTVS) { SeasonsList.Add(mtvs); } }
public void Update(int drainscore, int toLevelScore, int matches, int seasons, int rank) { if (toLevelScore != _lastLevel) { _lastLevel = toLevelScore; ToLevelScoreList.Clear(); ToLevelScoreList = UpdateNumberList(toLevelScore.ToString().ToCharArray()); } if (drainscore != _lastDrain) { _lastDrain = drainscore; DrainScoreList.Clear(); DrainScoreList = UpdateNumberList(drainscore.ToString().ToCharArray()); } if (seasons != _lastSeason) { _lastSeason = seasons; SeasonsList.Clear(); SeasonsList = UpdateNumberList(seasons.ToString().ToCharArray()); } if (matches != _lastMatches) { _lastMatches = matches; MatchesList.Clear(); MatchesList = UpdateNumberList(matches.ToString().ToCharArray()); } if (rank != _lastRank) { _lastRank = rank; RankList.Clear(); RankList = UpdateNumberList(rank.ToString().ToCharArray()); } }