IAdminLogManager.cs 1002 B

123456789101112131415161718192021222324252627
  1. using System.Text.Json;
  2. using System.Threading.Tasks;
  3. using Content.Server.Database;
  4. using Content.Server.GameTicking;
  5. using Content.Shared.Administration.Logs;
  6. namespace Content.Server.Administration.Logs;
  7. public interface IAdminLogManager : ISharedAdminLogManager
  8. {
  9. void Initialize();
  10. Task Shutdown();
  11. void Update();
  12. void RoundStarting(int id);
  13. void RunLevelChanged(GameRunLevel level);
  14. Task<List<SharedAdminLog>> All(LogFilter? filter = null, Func<List<SharedAdminLog>>? listProvider = null);
  15. IAsyncEnumerable<string> AllMessages(LogFilter? filter = null);
  16. IAsyncEnumerable<JsonDocument> AllJson(LogFilter? filter = null);
  17. Task<Round> Round(int roundId);
  18. Task<List<SharedAdminLog>> CurrentRoundLogs(LogFilter? filter = null);
  19. IAsyncEnumerable<string> CurrentRoundMessages(LogFilter? filter = null);
  20. IAsyncEnumerable<JsonDocument> CurrentRoundJson(LogFilter? filter = null);
  21. Task<Round> CurrentRound();
  22. Task<int> CountLogs(int round);
  23. }