SharpRSS/SharpRss/Models/CategoryModel.cs

25 lines
568 B
C#
Raw Normal View History

2023-05-12 23:58:49 +02:00
using System.Collections.Generic;
2023-05-12 15:48:14 +02:00
namespace SharpRss.Models
{
/// <summary>
/// To store and load data from file/database
/// </summary>
public class CategoryModel
2023-05-12 15:48:14 +02:00
{
2023-05-12 23:58:49 +02:00
public CategoryModel(CategoryModel model)
{
Name = model.Name;
Feeds = model.Feeds;
}
public CategoryModel(string name, HashSet<FeedModel> feeds)
{
Name = name;
Feeds = feeds;
}
2023-05-12 15:48:14 +02:00
public string Name { get; set; }
public HashSet<FeedModel> Feeds { get; set; }
}
}