Exemplo n.º 1
0
 public AppSetting(ApplicationTheme theme,
                   ObservableCollection <string> excludeTags,
                   bool disableDomainFronting,
                   IllustrationSortOption defaultSortOption,
                   SearchTagMatchOption searchTagMatchOption,
                   TargetFilter targetFilter,
                   int pageLimitForKeywordSearch,
                   int searchStartingFromPageNumber,
                   int pageLimitForSpotlight,
                   string?mirrorHost,
                   int maxDownloadTaskConcurrencyLevel,
                   bool displayTeachingTipWhenGeneratingAppLink,
                   int itemsNumberLimitForDailyRecommendations,
                   bool filtrateRestrictedContent,
                   bool useFileCache)
 {
     Theme                                   = theme;
     ExcludeTags                             = excludeTags;
     DisableDomainFronting                   = disableDomainFronting;
     DefaultSortOption                       = defaultSortOption;
     TagMatchOption                          = searchTagMatchOption;
     TargetFilter                            = targetFilter;
     PageLimitForKeywordSearch               = pageLimitForKeywordSearch;
     SearchStartingFromPageNumber            = searchStartingFromPageNumber;
     PageLimitForSpotlight                   = pageLimitForSpotlight;
     MirrorHost                              = mirrorHost;
     MaxDownloadTaskConcurrencyLevel         = maxDownloadTaskConcurrencyLevel;
     DisplayTeachingTipWhenGeneratingAppLink = displayTeachingTipWhenGeneratingAppLink;
     ItemsNumberLimitForDailyRecommendations = itemsNumberLimitForDailyRecommendations;
     FiltrateRestrictedContent               = filtrateRestrictedContent;
     UseFileCache                            = useFileCache;
 }
Exemplo n.º 2
0
 public SearchEngine(
     MakoClient makoClient,
     EngineHandle?engineHandle,
     SearchTagMatchOption matchOption,
     string tag,
     int start,
     int pages,
     IllustrationSortOption?sortOption,
     SearchDuration searchDuration,
     DateTimeOffset?startDate,
     DateTimeOffset?endDate,
     TargetFilter?targetFilter) : base(makoClient, engineHandle)
 {
     _matchOption    = matchOption;
     _tag            = tag;
     _current        = start;
     _pages          = pages;
     _sortOption     = sortOption ?? IllustrationSortOption.PublishDateDescending;
     _searchDuration = searchDuration;
     _startDate      = startDate;
     _endDate        = endDate;
     _targetFilter   = targetFilter ?? TargetFilter.ForAndroid;
 }