about summary refs log tree commit diff
path: root/LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildEventContent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildEventContent.cs')
-rw-r--r--LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildEventContent.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildEventContent.cs b/LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildEventContent.cs
new file mode 100644
index 0000000..bd8ff64
--- /dev/null
+++ b/LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildEventContent.cs
@@ -0,0 +1,17 @@
+using System.Text.Json.Serialization;
+
+namespace LibMatrix.LegacyEvents.EventTypes.Spec.State;
+
+[MatrixEvent(EventName = EventId)]
+public class SpaceChildEventContent : EventContent {
+    public const string EventId = "m.space.child";
+
+    [JsonPropertyName("auto_join")]
+    public bool? AutoJoin { get; set; }
+
+    [JsonPropertyName("via")]
+    public List<string>? Via { get; set; }
+
+    [JsonPropertyName("suggested")]
+    public bool? Suggested { get; set; }
+}
\ No newline at end of file