LogFilter.cs 891 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Threading;
  2. using Content.Shared.Administration.Logs;
  3. using Content.Shared.Database;
  4. namespace Content.Server.Administration.Logs;
  5. public sealed class LogFilter
  6. {
  7. public CancellationToken CancellationToken { get; set; }
  8. public int? Round { get; set; }
  9. public string? Search { get; set; }
  10. public HashSet<LogType>? Types { get; set; }
  11. public HashSet<LogImpact>? Impacts { get; set; }
  12. public DateTime? Before { get; set; }
  13. public DateTime? After { get; set; }
  14. public bool IncludePlayers { get; set; } = true;
  15. public Guid[]? AnyPlayers { get; set; }
  16. public Guid[]? AllPlayers { get; set; }
  17. public bool IncludeNonPlayers { get; set; }
  18. public int? LastLogId { get; set; }
  19. public int LogsSent { get; set; }
  20. public int? Limit { get; set; }
  21. public DateOrder DateOrder { get; set; } = DateOrder.Descending;
  22. }