feat: add notice model, rules and service
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
|
||||
namespace Jellyfin.Plugin.Herald.Notices;
|
||||
|
||||
/// <summary>
|
||||
/// One row of the acknowledgement report.
|
||||
/// </summary>
|
||||
public class AckEntry
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the user id.
|
||||
/// </summary>
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user name. <c>null</c> if the user no longer exists.
|
||||
/// </summary>
|
||||
public string? UserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the response. <c>null</c> for users who have not responded.
|
||||
/// </summary>
|
||||
public AckAction? Action { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the response time (UTC). <c>null</c> for users who have not responded.
|
||||
/// </summary>
|
||||
public DateTime? Timestamp { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user