Admin Panel Addition
This commit is contained in:
@@ -204,14 +204,22 @@ public sealed partial class DungeonHandler : IClientMessageHandler
|
||||
// Payload classes for Redis pub/sub
|
||||
private class BroadcastPayload
|
||||
{
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public string Type { get; set; } = "system";
|
||||
|
||||
[System.Text.Json.Serialization.JsonPropertyName("message")]
|
||||
public string Message { get; set; } = "";
|
||||
|
||||
[System.Text.Json.Serialization.JsonPropertyName("duration")]
|
||||
public int Duration { get; set; } = 10;
|
||||
|
||||
[System.Text.Json.Serialization.JsonPropertyName("timestamp")]
|
||||
public long Timestamp { get; set; }
|
||||
}
|
||||
|
||||
private class CommandPayload
|
||||
{
|
||||
[System.Text.Json.Serialization.JsonPropertyName("command")]
|
||||
public string Command { get; set; } = "";
|
||||
public long Timestamp { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user