about summary refs log tree commit diff
path: root/ExampleBots/PluralContactBotPoC/Bot/AccountData/SystemData.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-15 09:50:45 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-15 09:50:45 +0200
commit6bd02248ccfbcb46960a6f39eaad23888d190eb5 (patch)
tree110578f31b6f9f70a7a1edab32fb3a34d6ad4f1a /ExampleBots/PluralContactBotPoC/Bot/AccountData/SystemData.cs
parentMedia moderator PoC works, abstract command handling to library (diff)
downloadLibMatrix-6bd02248ccfbcb46960a6f39eaad23888d190eb5.tar.xz
Some refactoring
Diffstat (limited to 'ExampleBots/PluralContactBotPoC/Bot/AccountData/SystemData.cs')
-rw-r--r--ExampleBots/PluralContactBotPoC/Bot/AccountData/SystemData.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/ExampleBots/PluralContactBotPoC/Bot/AccountData/SystemData.cs b/ExampleBots/PluralContactBotPoC/Bot/AccountData/SystemData.cs
new file mode 100644
index 0000000..5edfc0e
--- /dev/null
+++ b/ExampleBots/PluralContactBotPoC/Bot/AccountData/SystemData.cs
@@ -0,0 +1,15 @@
+using System.Text.Json.Serialization;
+using LibMatrix.Helpers;
+using LibMatrix.Interfaces;
+
+namespace PluralContactBotPoC.Bot.StateEventTypes;
+
+[MatrixEvent(EventName = "gay.rory.plural_contact_bot.system_data")]
+public class SystemData : EventContent {
+    [JsonPropertyName("control_room")]
+    public string ControlRoom { get; set; } = null!;
+    [JsonPropertyName("system_members")]
+    public List<string> Members { get; set; } = new();
+    [JsonPropertyName("dm_space")]
+    public string? DmSpace { get; set; }
+}