24 lines
528 B
C#
24 lines
528 B
C#
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; }
|
|
}
|