public CategoryViewModel(Category category)
 {
     _category = category;
     _albumViewModels = null;
     _imageUrl1 = category.ImageUrl;
     _imageUrl2 = category.ImageUrl;
     _imageUrl3 = category.ImageUrl;
     _imageUrl4 = category.ImageUrl;
     _carousalImageUrl = category.ImageUrl;
     _carousalAlbumViewModel = null;
     _carousalIndex = 0;
     _carousalInterval = CarousalInterval.None;
 }
Exemplo n.º 2
0
        private static Category CreateCategoryFromDiscoveryItem(DiscoveryItem di)
        {
            var category = new Category()
            {
                ActionTarget = di.ActionTarget,
                ImageId = di.ImageId,
                ImageUrl = di.ImageUrl,
                Rank = di.Rank,
                Text = di.Text,
                Title = di.Title,
            };
            category.Albums = new List<Album>();

            return category;
        }