feat: add notice model, rules and service

This commit is contained in:
2026-11-13 18:10:41 +01:00
parent f15253b976
commit 41d1978d34
11 changed files with 658 additions and 0 deletions
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
namespace Jellyfin.Plugin.Herald.Notices;
/// <summary>
/// Who a notice is addressed to.
/// </summary>
public class NoticeTarget
{
/// <summary>
/// Gets or sets a value indicating whether every user is addressed.
/// </summary>
public bool AllUsers { get; set; } = true;
/// <summary>
/// Gets or sets the addressed users. Ignored when <see cref="AllUsers"/> is set.
/// </summary>
public IReadOnlyList<Guid> UserIds { get; set; } = [];
}