private async Task FetchMangaRanking() { Ranking.Clear(); var modes = new[] { "day", "week_rookie", "week", "month" }; foreach (var _ in modes) { var illusts = await _queryCacheService.RunAsync(_pixivClient.IllustV1.RankingAsync, mode => $"{_}_manga"); if (illusts != null) { Ranking.Add(new Tuple <RankingMode, IIllusts>(RankingModeExt.FromString(_), illusts)); } } }
private async Task FetchNovelRanking() { RankingOfNovels.Clear(); var modes = new[] { "day", "day_male", "day_female", "week_rookie", "week" }; foreach (var _ in modes) { var novels = await _queryCacheService.RunAsync(_pixivClient.NovelV1.RankingAsync, mode => _); if (novels != null) { RankingOfNovels.Add(new Tuple <RankingMode, INovels>(RankingModeExt.FromString(_), novels)); } } }
private async Task FetchIllustRanking() { Ranking.Clear(); var modes = new[] { "day", "day_male", "day_female", "week_original", "week_rookie", "week", "month" }; foreach (var _ in modes) { var illusts = await _queryCacheService.RunAsync(_pixivClient.IllustV1.RankingAsync, mode => _, filter => "for_ios"); if (illusts != null) { Ranking.Add(new Tuple <RankingMode, IIllusts>(RankingModeExt.FromString(_), illusts)); } } }