ConditionNotesDateRange.cs 847 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Linq;
  2. using System.Threading.Tasks;
  3. using Content.Server.Database;
  4. using Content.Shared.Database;
  5. using Robust.Shared.Network;
  6. namespace Content.Server.Connection.Whitelist.Conditions;
  7. /// <summary>
  8. /// Condition that matches if the player has notes within a certain date range.
  9. /// </summary>
  10. public sealed partial class ConditionNotesDateRange : WhitelistCondition
  11. {
  12. [DataField]
  13. public bool IncludeExpired = false;
  14. [DataField]
  15. public NoteSeverity MinimumSeverity = NoteSeverity.Minor;
  16. /// <summary>
  17. /// The minimum number of notes required.
  18. /// </summary>
  19. [DataField]
  20. public int MinimumNotes = 1;
  21. /// <summary>
  22. /// Range in days to check for notes.
  23. /// </summary>
  24. [DataField]
  25. public int Range = int.MaxValue;
  26. [DataField]
  27. public bool IncludeSecret = false;
  28. }