2023-04-28 21:58:36 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using CodeHollow.FeedReader;
|
|
|
|
|
|
|
|
namespace WebSharpRSS.Models
|
|
|
|
{
|
2023-04-30 20:13:14 +02:00
|
|
|
public class CategoryGuideItem
|
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-04-28 21:58:36 +02:00
|
|
|
public HashSet<Feed> Feeds { get; set; } = new HashSet<Feed>() { FeedReader.ReadAsync("http://fedoramagazine.org/feed/").Result };
|
|
|
|
}
|
|
|
|
}
|