Exemple #1
0
 public RecommendationEngine(MakoClient makoClient, RecommendationContentType?recommendContentType, TargetFilter filter, uint?maxBookmarkIdForRecommend, uint?minBookmarkIdForRecentIllust, EngineHandle?engineHandle) : base(makoClient, engineHandle)
 {
     _recommendContentType = recommendContentType ?? RecommendationContentType.Illust;
     _filter = filter;
     _maxBookmarkIdForRecommend    = maxBookmarkIdForRecommend;
     _minBookmarkIdForRecentIllust = minBookmarkIdForRecentIllust;
 }
Exemple #2
0
 /// <summary>
 ///     Request recommended illustrations in Pixiv.
 /// </summary>
 /// <param name="recommendContentType">The <see cref="RecommendationContentType" /> option for illust or manga</param>
 /// <param name="targetFilter">The <see cref="TargetFilter" /> option targeting android or ios</param>
 /// <param name="maxBookmarkIdForRecommend">Max bookmark id for recommendation</param>
 /// <param name="minBookmarkIdForRecentIllust">Min bookmark id for recent illust</param>
 /// <returns>
 ///     The <see cref="RecommendationEngine" /> containing recommended illustrations.
 /// </returns>
 public IFetchEngine <Illustration> Recommendations(
     RecommendationContentType recommendContentType = RecommendationContentType.Illust,
     TargetFilter targetFilter         = TargetFilter.ForAndroid,
     uint?maxBookmarkIdForRecommend    = null,
     uint?minBookmarkIdForRecentIllust = null)
 {
     EnsureNotCancelled();
     return(new RecommendationEngine(this, recommendContentType, targetFilter, maxBookmarkIdForRecommend, minBookmarkIdForRecentIllust, new EngineHandle(CancelInstance)));
 }