2022-05-28 23:41:17 -07:00
|
|
|
|
using System.Text.Json;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Content.Server.Database;
|
|
|
|
|
|
using Content.Server.GameTicking;
|
|
|
|
|
|
using Content.Shared.Administration.Logs;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Administration.Logs;
|
|
|
|
|
|
|
|
|
|
|
|
public interface IAdminLogManager : ISharedAdminLogManager
|
|
|
|
|
|
{
|
|
|
|
|
|
void Initialize();
|
|
|
|
|
|
Task Shutdown();
|
|
|
|
|
|
void Update();
|
|
|
|
|
|
|
|
|
|
|
|
void RoundStarting(int id);
|
|
|
|
|
|
void RunLevelChanged(GameRunLevel level);
|
|
|
|
|
|
|
2022-10-17 00:00:30 +02:00
|
|
|
|
Task<List<SharedAdminLog>> All(LogFilter? filter = null, Func<List<SharedAdminLog>>? listProvider = null);
|
2022-05-28 23:41:17 -07:00
|
|
|
|
IAsyncEnumerable<string> AllMessages(LogFilter? filter = null);
|
|
|
|
|
|
IAsyncEnumerable<JsonDocument> AllJson(LogFilter? filter = null);
|
|
|
|
|
|
Task<Round> Round(int roundId);
|
|
|
|
|
|
Task<List<SharedAdminLog>> CurrentRoundLogs(LogFilter? filter = null);
|
|
|
|
|
|
IAsyncEnumerable<string> CurrentRoundMessages(LogFilter? filter = null);
|
|
|
|
|
|
IAsyncEnumerable<JsonDocument> CurrentRoundJson(LogFilter? filter = null);
|
|
|
|
|
|
Task<Round> CurrentRound();
|
2023-05-17 04:04:28 -07:00
|
|
|
|
Task<int> CountLogs(int round);
|
2022-05-28 23:41:17 -07:00
|
|
|
|
}
|