mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2024-11-10 07:54:20 +01:00
31 lines
809 B
C#
31 lines
809 B
C#
using System;
|
|
using ToolQit;
|
|
using ToolQit.Extensions;
|
|
|
|
namespace SharpRss.Models
|
|
{
|
|
public class CategoryModel
|
|
{
|
|
public CategoryModel()
|
|
{
|
|
Id = Guid.NewGuid().ToString();
|
|
}
|
|
/*private string _id = string.Empty;*/
|
|
public string Id { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
private string _hexColor = string.Empty;
|
|
public string HexColor
|
|
{
|
|
get
|
|
{
|
|
if (_hexColor.IsNullEmptyWhiteSpace())
|
|
_hexColor = Utilities.GenerateRandomHexColor();
|
|
return _hexColor;
|
|
}
|
|
set => _hexColor = value;
|
|
}
|
|
public int FeedCount { get; set; }
|
|
public string Icon { get; set; } = string.Empty;
|
|
}
|
|
}
|