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>
|
2023-05-15 15:53:08 +02:00
|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|