feat: add Herald API controller
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user