feat: add notice model, rules and service
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
|
||||
namespace Jellyfin.Plugin.Herald.Notices;
|
||||
|
||||
/// <summary>
|
||||
/// A user's response to one revision of a notice.
|
||||
/// </summary>
|
||||
public class NoticeAck
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the notice id.
|
||||
/// </summary>
|
||||
public Guid NoticeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the acknowledged revision.
|
||||
/// </summary>
|
||||
public int Revision { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user id.
|
||||
/// </summary>
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the response.
|
||||
/// </summary>
|
||||
public AckAction Action { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the response time (UTC).
|
||||
/// </summary>
|
||||
public DateTime Timestamp { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user