feat: add notice model, rules and service

This commit is contained in:
2026-11-13 18:10:41 +01:00
parent f15253b976
commit 41d1978d34
11 changed files with 658 additions and 0 deletions
@@ -0,0 +1,32 @@
namespace Jellyfin.Plugin.Herald.Notices;
/// <summary>
/// The editable part of a notice, as sent by the admin UI.
/// </summary>
public class NoticeDraft
{
/// <summary>
/// Gets or sets the title.
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Gets or sets the body.
/// </summary>
public string? Body { get; set; }
/// <summary>
/// Gets or sets a value indicating whether users have to accept the notice.
/// </summary>
public bool RequireAccept { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the notice is shown.
/// </summary>
public bool Enabled { get; set; } = true;
/// <summary>
/// Gets or sets the addressed users. Defaults to all users.
/// </summary>
public NoticeTarget? Target { get; set; }
}