fish-station/Content.Shared/Administration/AdminWhoSystem.cs
Copilot 878167c937
Вернуть команду adminwho в общий доступ и реализовать UI с правильным client-server взаимодействием (#2918)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: VigersRay <60344369+VigersRay@users.noreply.github.com>
Co-authored-by: Vigers Ray <vigersray@gmail.com>
2025-09-09 22:06:57 +03:00

45 lines
No EOL
1 KiB
C#

using Robust.Shared.Serialization;
namespace Content.Shared.Administration;
/// <summary>
/// Request event to get the list of online administrators
/// </summary>
[Serializable, NetSerializable]
public sealed class RequestAdminWhoEvent : EntityEventArgs
{
}
/// <summary>
/// Response event containing the list of online administrators
/// </summary>
[Serializable, NetSerializable]
public sealed class AdminWhoResponseEvent : EntityEventArgs
{
public readonly List<AdminWhoEntry> Admins;
public AdminWhoResponseEvent(List<AdminWhoEntry> admins)
{
Admins = admins;
}
}
/// <summary>
/// Information about a single administrator
/// </summary>
[Serializable, NetSerializable]
public sealed class AdminWhoEntry
{
public readonly string Name;
public readonly string? Title;
public readonly bool IsStealth;
public readonly bool IsAfk;
public AdminWhoEntry(string name, string? title, bool isStealth, bool isAfk)
{
Name = name;
Title = title;
IsStealth = isStealth;
IsAfk = isAfk;
}
}