33 lines
841 B
C#
33 lines
841 B
C#
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; }
|
|
}
|