Files

38 lines
1.0 KiB
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 the number of seconds the notice has to be on screen before it can be accepted.
/// </summary>
public int AcceptDelaySeconds { 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; }
}