RssFeedItem Pennington.Feeds
Single entry in a generated RSS feed.
Properties
Authorstring?- Default:
nullOptional author name or email. Descriptionstring?- Default:
nullOptional summary or excerpt. PublishDateSystem.DateTime?- Default:
nullPublication date, when known. Titlestring- Item title shown in the feed.
UrlPennington.Routing.UrlPath- Absolute URL the entry links to.
Constructors
.ctor
#public record RssFeedItem(
string Title,
string? Description,
UrlPath Url,
DateTime? PublishDate,
string? Author
);Single entry in a generated RSS feed.
Parameters
Titlestring- Item title shown in the feed.
Descriptionstring?- Optional summary or excerpt.
UrlUrlPath- Absolute URL the entry links to.
PublishDateDateTime?- Publication date, when known.
Authorstring?- Optional author name or email.
Pennington.Feeds.RssFeedItem
namespace Pennington.Feeds;
/// Single entry in a generated RSS feed.
public record RssFeedItem
{
/// Single entry in a generated RSS feed.
public record RssFeedItem(
string Title,
string? Description,
UrlPath Url,
DateTime? PublishDate,
string? Author
);
/// Optional author name or email.
string? Author
;
/// Optional summary or excerpt.
string? Description
;
/// Publication date, when known.
DateTime? PublishDate
;
/// Item title shown in the feed.
string Title
;
/// Absolute URL the entry links to.
UrlPath Url
;
}