oliverbooth.dev/OliverBooth.Blog/Data/Rss/BlogChannel.cs
Oliver Booth e8bc50bbdf
refactor: move blog to separate app
I'd ideally like to keep the blog. subdomain the same, and while there are a few ways to achieve this it is much simpler to just dedicate a separate application for the subdomain.

This change also adjusts the webhost builder extensions to default to ports 443/80, and each app now explicitly sets the port it needs.
2023-08-12 20:13:47 +01:00

33 lines
1.0 KiB
C#

using System.Xml.Serialization;
namespace OliverBooth.Data.Rss;
public sealed class BlogChannel
{
[XmlElement("title")]
public string Title { get; set; } = default!;
[XmlElement("link", Namespace = "http://www.w3.org/2005/Atom")]
public AtomLink AtomLink { get; set; } = default!;
[XmlElement("link")]
public string Link { get; set; } = default!;
[XmlElement("description")]
public string Description { get; set; } = default!;
[XmlElement("lastBuildDate")]
public string LastBuildDate { get; set; } = default!;
[XmlElement("updatePeriod", Namespace = "http://purl.org/rss/1.0/modules/syndication/")]
public string UpdatePeriod { get; set; } = "hourly";
[XmlElement("updateFrequency", Namespace = "http://purl.org/rss/1.0/modules/syndication/")]
public string UpdateFrequency { get; set; } = "1";
[XmlElement("generator")]
public string Generator { get; set; } = default!;
[XmlElement("item")]
public List<BlogItem> Items { get; set; } = new();
}