@using SharpRss.Models; @using MudBlazor.Utilities @using CodeHollow.FeedReader @using Serilog @inject RssService _rssService Home @code { public HashSet Categories = new HashSet(); protected override void OnInitialized() { Log.Verbose("Setting up test data"); Categories = _rssService.GetCategories().Result; /*Cats = _rssService.GetCategories().Result.Select(x => new GuideModel(x)).ToHashSet();*/ /*Categories.Add(new CategoryGuideItem() { CategoryTitle = "Social", CategoryIcon = Icons.Material.Filled.People }); Categories.Add(new CategoryGuideItem() { CategoryTitle = "Blogs", CategoryIcon = Icons.Material.Filled.RssFeed, CategoryHexColor = Colors.Green.Accent1 }); Categories.Add(new CategoryGuideItem() { CategoryTitle = "Tech", CategoryIcon = Icons.Material.Filled.Computer, CategoryHexColor = Colors.Brown.Lighten1 }); Categories.Add(new CategoryGuideItem() { CategoryTitle = "News", CategoryIcon = Icons.Material.Filled.Newspaper, CategoryHexColor = Colors.Red.Accent1 });*/ } private void Callback(MudListItem obj) { switch (obj.Value) { case CategoryModel catModel: break; case FeedModel feedModel: break; } } private void CategoryClicked(CategoryModel cat) { } private void FeedClicked(FeedModel guideFeedItem) { } }