feat: add notice model, rules and service
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Jellyfin.Plugin.Herald.Notices;
|
||||
|
||||
/// <summary>
|
||||
/// Who responded to the current revision of a notice and who has not yet.
|
||||
/// </summary>
|
||||
public class AckReport
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the notice id.
|
||||
/// </summary>
|
||||
public Guid NoticeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the revision the report covers.
|
||||
/// </summary>
|
||||
public int Revision { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the users who responded, oldest response first.
|
||||
/// </summary>
|
||||
public IReadOnlyList<AckEntry> Responses { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the addressed users who have not responded.
|
||||
/// </summary>
|
||||
public IReadOnlyList<AckEntry> Pending { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user