Пример #1
0
        public GirlsPageViewModel(IGankApiService gankApiService, IRegionManager regionManager)
        {
            this.regionManager = regionManager;
            PostCollectionSource source = new PostCollectionSource(gankApiService, Category.Girl, "Girl");

            this.posts = new IncrementalLoadingCollection <PostCollectionSource, Post>(source, 20);

            HandleImageItemClickCmd = new DelegateCommand <Post>(HandleImageItemClick, (item) => !String.IsNullOrEmpty(item.Url));
        }
Пример #2
0
        public TypedPosts(IGankApiService gankApiService, Category category, SubType type)
        {
            this.category = category;
            this.type     = type.Type;
            this.title    = type.Title;

            PostCollectionSource source = new PostCollectionSource(gankApiService, category, this.type);

            this.posts = new IncrementalLoadingCollection <PostCollectionSource, Post>(source, 20);
        }