private async Task <IIllusts> FetchManga() { IIllusts illusts = null; if (_followType == FollowType.Following) { throw new NotSupportedException("Following"); } if (_followType == FollowType.Mypixiv) { throw new NotSupportedException("Mypixiv"); } if (_followType == FollowType.All) { illusts = await _queryCacheService.RunAsync(_pixivClient.IllustV1.NewAsync, filter => "for_ios", content_type => "manga", max_illust_id => _maxIllustId); } return(illusts); }
private async Task <IIllusts> FetchIllusts() { IIllusts illusts = null; if (_followType == FollowType.Following) { illusts = await _queryCacheService.RunAsync(_pixivClient.IllustV2.FollowAsync, restrict => "all", offset => _offset); } else if (_followType == FollowType.Mypixiv) { illusts = await _queryCacheService.RunAsync(_pixivClient.IllustV2.MypixivAsync, offset => _offset); } else if (_followType == FollowType.All) { illusts = await _queryCacheService.RunAsync(_pixivClient.IllustV1.NewAsync, filter => "for_ios", content_type => "illust", max_illust_id => _maxIllustId); } return(illusts); }