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
+23
View File
@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
using Jellyfin.Plugin.Herald.Notices;
namespace Jellyfin.Plugin.Herald.Api;
/// <summary>
/// Body of an acknowledgement request.
/// </summary>
public class AckRequest
{
/// <summary>
/// Gets or sets the revision the user saw.
/// </summary>
[Required]
public int? Revision { get; set; }
/// <summary>
/// Gets or sets the response.
/// </summary>
[Required]
[EnumDataType(typeof(AckAction))]
public AckAction? Action { get; set; }
}