예제 #1
0
 public NovelViewPageViewModel(ICategoryService categoryService, IPixivClient pixivClient, IQueryCacheService queryCacheService)
 {
     _categoryService   = categoryService;
     _pixivClient       = pixivClient;
     _queryCacheService = queryCacheService;
     Text = "読込中...";
 }
예제 #2
0
 public PixivTrending(SearchType searchType, IPixivClient pixivClient, IQueryCacheService queryCacheService)
 {
     _searchType        = searchType;
     _pixivClient       = pixivClient;
     _queryCacheService = queryCacheService;
     TrendingTags       = new ObservableCollection <ITrendTag>();
 }
예제 #3
0
 public PixivDetail(string id, SearchType searchType, IPixivClient pixivClient, IQueryCacheService queryCacheService)
 {
     _id                = id;
     _searchType        = searchType;
     _pixivClient       = pixivClient;
     _queryCacheService = queryCacheService;
 }
예제 #4
0
        public PixivBookmarkTag(IPixivClient pixivClient, IQueryCacheService queryCacheService)
        {
            _pixivClient       = pixivClient;
            _queryCacheService = queryCacheService;
            BookmarkTags       = new ObservableCollection <IBookmarkTag>();
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #5
0
파일: PixivSearch.cs 프로젝트: mika-f/Pyxis
 public PixivSearch(IPixivClient pixivClient, IQueryCacheService queryCacheService)
 {
     _pixivClient       = pixivClient;
     _queryCacheService = queryCacheService;
     ResultIllusts      = new ObservableCollection <IIllust>();
     ResultNovels       = new ObservableCollection <INovel>();
     ResultUsers        = new ObservableCollection <IUserPreview>();
     _offset            = "";
     _count             = 0;
     HasMoreItems       = false;
 }
예제 #6
0
 public UserDetailPageViewModel(IAccountService accountService, ICategoryService categoryService,
                                IImageStoreService imageStoreService, INavigationService navigationService,
                                IPixivClient pixivClient, IQueryCacheService queryCacheService)
 {
     _accountService    = accountService;
     _categoryService   = categoryService;
     _imageStoreService = imageStoreService;
     NavigationService  = navigationService;
     _pixivClient       = pixivClient;
     _queryCacheService = queryCacheService;
     ThumbnailPath      = PyxisConstants.DummyIcon;
 }
예제 #7
0
        public PixivFavorite(IPixivClient pixivClient, IQueryCacheService queryCacheService)
        {
            _pixivClient       = pixivClient;
            _queryCacheService = queryCacheService;
            ResultIllusts      = new ObservableCollection <IIllust>();
            ResultNovels       = new ObservableCollection <INovel>();
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #8
0
 public FollowingMainPageViewModel(IAccountService accountService, ICategoryService categoryService,
                                   IImageStoreService imageStoreService, INavigationService navigationService,
                                   IPixivClient pixivClient, IQueryCacheService queryCacheService)
 {
     _accountService    = accountService;
     _categoryService   = categoryService;
     _imageStoreService = imageStoreService;
     NavigationService  = navigationService;
     _pixivClient       = pixivClient;
     _queryCacheService = queryCacheService;
     FollowingUsers     = new IncrementalObservableCollection <TappableThumbnailViewModel>();
 }
예제 #9
0
        public PixivBookmark(IPixivClient pixivClient, IQueryCacheService queryCacheService)
        {
            _pixivClient       = pixivClient;
            _queryCacheService = queryCacheService;
            _offset            = "";
            Novels             = new ObservableCollection <INovel>();
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
 public UserDetailCollectionPageViewModel(IAccountService accountService, ICategoryService categoryService,
                                          IImageStoreService imageStoreService,
                                          INavigationService navigationService, IPixivClient pixivClient, IQueryCacheService queryCacheService)
 {
     _accountService    = accountService;
     _categoryService   = categoryService;
     _imageStoreService = imageStoreService;
     NavigationService  = navigationService;
     _pixivClient       = pixivClient;
     _queryCacheService = queryCacheService;
     ThumbnailPath      = PyxisConstants.DummyIcon;
     Collection         = new IncrementalObservableCollection <ThumbnailableViewModel>();
 }
예제 #11
0
        public PixivRelated(IIllust illust, IPixivClient pixivClient, IQueryCacheService queryCacheService)
        {
            _illust            = illust;
            _pixivClient       = pixivClient;
            _queryCacheService = queryCacheService;
            _seedIds           = "";
            RelatedIllusts     = new ObservableCollection <IIllust>();
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #12
0
        public PixivComment(INovel novel, IPixivClient pixivClient, IQueryCacheService queryCacheService)
        {
            _novel             = novel;
            _pixivClient       = pixivClient;
            _queryCacheService = queryCacheService;
            Comments           = new ObservableCollection <IComment>();
            _offset            = "";
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #13
0
        public PixivFollower(string userId, IPixivClient pixivClient, IQueryCacheService queryCacheService)
        {
            _userId            = userId;
            _pixivClient       = pixivClient;
            _queryCacheService = queryCacheService;
            Users   = new ObservableCollection <IUserPreview>();
            _offset = "";
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #14
0
        public PixivComment(IIllust illust, IPixivClient pixivClient, IQueryCacheService queryCacheService)
        {
            _illust            = illust;
            _pixivClient       = pixivClient;
            _queryCacheService = queryCacheService;
            _offset            = "";
            Comments           = new ObservableCollection <IComment>();
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #15
0
        public PixivBrowsingHistory(IPixivClient pixivClient, ContentType2 contentType, IQueryCacheService queryCacheService)
        {
            _pixivClient       = pixivClient;
            _contentType       = contentType;
            _queryCacheService = queryCacheService;
            _offset            = "";
            Illusts            = new ObservableCollection <IIllust>();
            Novels             = new ObservableCollection <INovel>();
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #16
0
파일: PixivWork.cs 프로젝트: mika-f/Pyxis
        public PixivWork(string id, ContentType contentType, IPixivClient pixivClient, IQueryCacheService queryCacheService)
        {
            _id                = id;
            _contentType       = contentType;
            _pixivClient       = pixivClient;
            _queryCacheService = queryCacheService;
            _offset            = "";
            Illusts            = new ObservableCollection <IIllust>();
            Novels             = new ObservableCollection <INovel>();
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #17
0
 public PixivRanking(IPixivClient pixivClient, ContentType rankingType, IQueryCacheService queryCacheService)
 {
     _pixivClient       = pixivClient;
     _rankingType       = rankingType;
     _queryCacheService = queryCacheService;
     if (_rankingType == ContentType.Novel)
     {
         RankingOfNovels = new ObservableCollection <Tuple <RankingMode, INovels> >();
     }
     else
     {
         Ranking = new ObservableCollection <Tuple <RankingMode, IIllusts> >();
     }
     HasMoreItems = false;
 }
예제 #18
0
 public NovelDetailPageViewModel(IAccountService accountService, IBrowsingHistoryService browsingHistoryService,
                                 ICategoryService categoryService, IImageStoreService imageStoreService,
                                 INavigationService navigationService, IPixivClient pixivClient, IQueryCacheService queryCacheService)
 {
     _accountService         = accountService;
     _browsingHistoryService = browsingHistoryService;
     _categoryService        = categoryService;
     _imageStoreService      = imageStoreService;
     _navigationService      = navigationService;
     _pixivClient            = pixivClient;
     _queryCacheService      = queryCacheService;
     Tags          = new ObservableCollection <PixivTagViewModel>();
     Comments      = new ObservableCollection <PixivCommentViewModel>();
     ThumbnailPath = PyxisConstants.DummyImage;
     IconPath      = PyxisConstants.DummyIcon;
 }
예제 #19
0
        public PixivRecommended(IAccountService accountService, IPixivClient pixivClient, IQueryCacheService queryCacheService, ContentType contentType)
        {
            _accountService    = accountService;
            _contentType       = contentType;
            _pixivClient       = pixivClient;
            _queryCacheService = queryCacheService;
            _offset            = "";
            RecommendedNovels  = new ObservableCollection <INovel>();
            RecommendedImages  = new ObservableCollection <IIllust>();
            RecommendedUsers   = new ObservableCollection <IUserPreview>();
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #20
0
파일: PixivNew.cs 프로젝트: mika-f/Pyxis
        public PixivNew(ContentType contentType, FollowType followType, IPixivClient pixivClient, IQueryCacheService queryCacheService)
        {
            _contentType       = contentType;
            _followType        = followType;
            _pixivClient       = pixivClient;
            _queryCacheService = queryCacheService;
            NewIllusts         = new ObservableCollection <IIllust>();
            NewNovels          = new ObservableCollection <INovel>();
            _offset            = "";
            _maxNovelId        = "";
            _maxIllustId       = "";
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #21
0
        public PixivRanking(IPixivClient pixivClient, ContentType rankingType, RankingMode rankingMode, IQueryCacheService queryCacheService)
        {
            _pixivClient       = pixivClient;
            _rankingType       = rankingType;
            _rankingMode       = rankingMode;
            _queryCacheService = queryCacheService;
            _offset            = "";
            if (_rankingType == ContentType.Novel)
            {
                Novels = new ObservableCollection <INovel>();
            }
            else
            {
                Illusts = new ObservableCollection <IIllust>();
            }
#if OFFLINE
            HasMoreItems = false;
#else
            HasMoreItems = true;
#endif
        }
예제 #22
0
 public FavoriteOptionDialogViewModel(IPixivClient pixivClient, IQueryCacheService queryCacheService)
 {
     _pixivClient       = pixivClient;
     _queryCacheService = queryCacheService;
     Tags = new IncrementalObservableCollection <string>();
 }
예제 #23
0
 public BrowsingHistoryService(IPixivClient pixivClient)
 {
     _pixivClient = pixivClient;
     _illustIds   = new List <int>();
     _novelIds    = new List <int>();
 }
예제 #24
0
 public ImageStoreService(IPixivClient client)
 {
     _client          = client;
     _temporaryFolder = ApplicationData.Current.TemporaryFolder;
     Regex.CacheSize  = short.MaxValue;
 }
예제 #25
0
 public AccountService(IPixivClient pixivClient)
 {
     _pixivClient = pixivClient;
     IsLoggedIn   = false;
     IsPremium    = false;
 }
예제 #26
0
 public PixivNovelText(INovel novel, IPixivClient pixivClient, IQueryCacheService queryCacheService)
 {
     _novel             = novel;
     _pixivClient       = pixivClient;
     _queryCacheService = queryCacheService;
 }