feat: add notice model, rules and service
This commit is contained in:
@@ -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; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user