feat: add notice model, rules and service
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user