feat: add Herald API controller

This commit is contained in:
2026-11-13 18:10:41 +01:00
parent d1ee91b965
commit fe94b0dc08
3 changed files with 339 additions and 0 deletions
@@ -0,0 +1,34 @@
using System;
namespace Jellyfin.Plugin.Herald.Api;
/// <summary>
/// A notice as shown to the user it is pending for.
/// </summary>
public class PendingNotice
{
/// <summary>
/// Gets or sets the notice id.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the title.
/// </summary>
public string Title { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the body.
/// </summary>
public string Body { get; set; } = string.Empty;
/// <summary>
/// Gets or sets a value indicating whether the notice has to be accepted.
/// </summary>
public bool RequireAccept { get; set; }
/// <summary>
/// Gets or sets the revision to send back with the response.
/// </summary>
public int Revision { get; set; }
}