about summary refs log tree commit diff
path: root/LibMatrix.EventTypes/Spec/State/Space/SpaceChildEventContent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix.EventTypes/Spec/State/Space/SpaceChildEventContent.cs')
-rw-r--r--LibMatrix.EventTypes/Spec/State/Space/SpaceChildEventContent.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/LibMatrix.EventTypes/Spec/State/Space/SpaceChildEventContent.cs b/LibMatrix.EventTypes/Spec/State/Space/SpaceChildEventContent.cs
index 2caa791..d233be4 100644
--- a/LibMatrix.EventTypes/Spec/State/Space/SpaceChildEventContent.cs
+++ b/LibMatrix.EventTypes/Spec/State/Space/SpaceChildEventContent.cs
@@ -2,12 +2,16 @@ using System.Text.Json.Serialization;
 
 namespace LibMatrix.EventTypes.Spec.State;
 
-[MatrixEvent(EventName = "m.space.child")]
+[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