示例#1
0
 public RecommendEngine(MakoClient makoClient, RecommendContentType?recommendContentType, TargetFilter filter, uint?maxBookmarkIdForRecommend, uint?minBookmarkIdForRecentIllust, EngineHandle?engineHandle) : base(makoClient, engineHandle)
 {
     _recommendContentType = recommendContentType ?? RecommendContentType.Illust;
     _filter = filter;
     _maxBookmarkIdForRecommend    = maxBookmarkIdForRecommend;
     _minBookmarkIdForRecentIllust = minBookmarkIdForRecentIllust;
 }
示例#2
0
 public IFetchEngine <Illustration> Recommends(
     RecommendContentType recommendContentType = RecommendContentType.Illust,
     TargetFilter targetFilter         = TargetFilter.ForAndroid,
     uint?maxBookmarkIdForRecommend    = null,
     uint?maxBookmarkIdForRecentIllust = null)
 {
     EnsureNotCancelled();
     return(new RecommendEngine(this, recommendContentType, targetFilter, maxBookmarkIdForRecommend, maxBookmarkIdForRecentIllust, new EngineHandle(CancelInstance)));
 }