コード例 #1
0
ファイル: PixivBrowsingHistory.cs プロジェクト: mika-f/Pyxis
        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"];
            }
        }
コード例 #2
0
ファイル: PixivRanking.cs プロジェクト: mika-f/Pyxis
        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"];
            }
        }
コード例 #3
0
ファイル: PixivWork.cs プロジェクト: mika-f/Pyxis
        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"];
            }
        }