SharpRSS/SharpRss/Models/FeedModel.cs

26 lines
902 B
C#
Raw Normal View History

2023-05-18 01:27:11 +02:00
using System;
2023-05-12 15:48:14 +02:00
namespace SharpRss.Models
{
public class FeedModel
2023-05-12 15:48:14 +02:00
{
2023-05-21 21:56:37 +02:00
public FeedModel(string rssUrl)
{
Url = rssUrl;
2023-05-22 15:55:21 +02:00
Id = Guid.NewGuid().ToString();
2023-05-21 21:56:37 +02:00
}
public string Id { get; set; }
public string Url { get; set; }
public string Title { get; set; } = string.Empty;
public string GroupId { get; set; } = string.Empty;
2023-05-21 21:56:37 +02:00
public string FeedType { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string Language { get; set; } = string.Empty;
public string Copyright { get; set; } = string.Empty;
2023-05-21 21:56:37 +02:00
public DateTimeOffset DateAdded { get; set; }
public DateTimeOffset LastUpdated { get; set; }
public string ImageUrl { get; set; } = string.Empty;
public string OriginalDocument { get; set; } = string.Empty;
2023-05-12 15:48:14 +02:00
}
}