Add ban list window (#12574)
This commit is contained in:
17
Content.Shared/Administration/BanList/BanListEuiState.cs
Normal file
17
Content.Shared/Administration/BanList/BanListEuiState.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Content.Shared.Eui;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Administration.BanList;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class BanListEuiState : EuiStateBase
|
||||
{
|
||||
public BanListEuiState(string banListPlayerName, List<SharedServerBan> bans)
|
||||
{
|
||||
BanListPlayerName = banListPlayerName;
|
||||
Bans = bans;
|
||||
}
|
||||
|
||||
public string BanListPlayerName { get; }
|
||||
public List<SharedServerBan> Bans { get; }
|
||||
}
|
||||
17
Content.Shared/Administration/BanList/SharedServerBan.cs
Normal file
17
Content.Shared/Administration/BanList/SharedServerBan.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Robust.Shared.Network;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Administration.BanList;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed record SharedServerBan(
|
||||
int? Id,
|
||||
NetUserId? UserId,
|
||||
(string address, int cidrMask)? Address,
|
||||
string? HWId,
|
||||
DateTime BanTime,
|
||||
DateTime? ExpirationTime,
|
||||
string Reason,
|
||||
string? BanningAdminName,
|
||||
SharedServerUnban? Unban
|
||||
);
|
||||
@@ -0,0 +1,9 @@
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Administration.BanList;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed record SharedServerUnban(
|
||||
string? UnbanningAdmin,
|
||||
DateTime UnbanTime
|
||||
);
|
||||
Reference in New Issue
Block a user