Pointless Waymarks Tools

Artifact [67c9f0f05f]
Login

Artifact [67c9f0f05f]

Artifact 67c9f0f05fc8615b21d290e01cebd4a2f04a233b27c90f9c7f94d214714f67a4:


namespace PointlessWaymarks.FeedReader;

/// <summary>
/// An html feed link, containing the title, the url and the type of the feed
/// </summary>
public class HtmlFeedLink
{
    /// <summary>
    /// The title of the feed
    /// </summary>
    public string? Title { get; set; }

    /// <summary>
    /// The url to the feed
    /// </summary>
    public string? Url { get; set; }

    /// <summary>
    /// The type of the feed - rss or atom
    /// </summary>
    public FeedType FeedType { get; set; }

    /// <summary>
    /// Initializes a new instance of the <see cref="HtmlFeedLink"/> class.
    /// default constructor (for serialization)
    /// </summary>
    public HtmlFeedLink()
    {
    }

    /// <summary>
    /// Initializes a new instance of the <see cref="HtmlFeedLink"/> class.
    /// Creates an html feed link item
    /// </summary>
    /// <param name="title">title fo the feed</param>
    /// <param name="url">url of the feed</param>
    /// <param name="feedType">type of the feed (rss 1.0, 2.0, ...)</param>
    public HtmlFeedLink(string? title, string? url, FeedType feedType)
    {
        Title = title;
        Url = url;
        FeedType = feedType;
    }
}