using System; namespace Jellyfin.Plugin.Herald.Notices; /// /// A message shown once to each addressed user. /// public class Notice { /// /// Gets or sets the id. /// public Guid Id { get; set; } /// /// Gets or sets the title. /// public string Title { get; set; } = string.Empty; /// /// Gets or sets the body: plain text or the supported Markdown subset. /// public string Body { get; set; } = string.Empty; /// /// Gets or sets a value indicating whether users have to accept the notice. /// public bool RequireAccept { get; set; } /// /// Gets or sets a value indicating whether the notice is shown at all. /// public bool Enabled { get; set; } = true; /// /// Gets or sets the addressed users. /// public NoticeTarget Target { get; set; } = new(); /// /// Gets or sets the revision. Acknowledgements only count for the current revision. /// public int Revision { get; set; } = 1; /// /// Gets or sets the creation time (UTC). /// public DateTime CreatedAt { get; set; } /// /// Gets or sets the time of the last change (UTC). /// public DateTime UpdatedAt { get; set; } }