private async Task FetchIllusts() { var illusts = await _queryCacheService.RunAsync(_pixivClient.User.BrowsingHistory.IllustAsync, offset => _offset); illusts?.IllustList.ForEach(w => Illusts.Add(w)); if (string.IsNullOrWhiteSpace(illusts?.NextUrl)) { HasMoreItems = false; } else { _offset = UrlParameter.ParseQuery(illusts.NextUrl)["offset"]; } }
private async Task FetchIllusts() { var illusts = await _queryCacheService.RunAsync(_pixivClient.IllustV1.RankingAsync, mode => _rankingMode.ToParamString(_rankingType), filter => "for_ios", offset => _offset); illusts?.IllustList.ForEach(w => Illusts.Add(w)); if (string.IsNullOrWhiteSpace(illusts?.NextUrl)) { HasMoreItems = false; } else { _offset = UrlParameter.ParseQuery(illusts.NextUrl)["offset"]; } }
private async Task FetchIllusts(string contentType) { var illusts = await _queryCacheService.RunAsync(_pixivClient.User.IllustsAsync, user_id => _id, filter => "for_ios", type => contentType, offset => _offset); illusts?.IllustList.ForEach(w => Illusts.Add(w)); if (string.IsNullOrWhiteSpace(illusts?.NextUrl)) { HasMoreItems = false; } else { _offset = UrlParameter.ParseQuery(illusts.NextUrl)["offset"]; } }