SharpRSS/WebSharpRSS/Models/CategoryGuideItem.cs

22 lines
714 B
C#
Raw Normal View History

2023-04-28 21:58:36 +02:00
using System.Collections.Generic;
using CodeHollow.FeedReader;
namespace WebSharpRSS.Models
{
2023-05-04 20:59:25 +02:00
public class CategoryGuideItem : ISelectableGuideItem
2023-04-28 21:58:36 +02:00
{
public string CategoryTitle { get; set; }
public string CategoryIcon { get; set; }
2023-04-30 20:13:14 +02:00
private string _hexColor;
public string CategoryHexColor
{
get => _hexColor;
set => _hexColor = value.Insert(7, "80");
}
2023-04-28 21:58:36 +02:00
public bool IsExpanded { get; set; }
2023-04-30 20:13:14 +02:00
public bool IsSelected { get; set; }
2023-05-04 20:59:25 +02:00
public HashSet<FeedGuideItem> FeedItems { get; set; } = new HashSet<FeedGuideItem>() { new FeedGuideItem(FeedReader.ReadAsync("http://fedoramagazine.org/feed/").Result) };
2023-04-28 21:58:36 +02:00
}
}