using System.Linq; using System.Threading.Tasks; using Content.Server.Database; using Content.Shared.Database; using Robust.Shared.Network; namespace Content.Server.Connection.Whitelist.Conditions; /// /// Condition that matches if the player has notes within a certain date range. /// public sealed partial class ConditionNotesDateRange : WhitelistCondition { [DataField] public bool IncludeExpired = false; [DataField] public NoteSeverity MinimumSeverity = NoteSeverity.Minor; /// /// The minimum number of notes required. /// [DataField] public int MinimumNotes = 1; /// /// Range in days to check for notes. /// [DataField] public int Range = int.MaxValue; [DataField] public bool IncludeSecret = false; }