diff options
Diffstat (limited to 'LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildLegacyEventContent.cs')
-rw-r--r-- | LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildLegacyEventContent.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildLegacyEventContent.cs b/LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildLegacyEventContent.cs new file mode 100644 index 0000000..75440e5 --- /dev/null +++ b/LibMatrix.LegacyEvents.EventTypes/Spec/State/Space/SpaceChildLegacyEventContent.cs @@ -0,0 +1,17 @@ +using System.Text.Json.Serialization; + +namespace LibMatrix.LegacyEvents.EventTypes.Spec.State; + +[LegacyMatrixEvent(EventName = EventId)] +public class SpaceChildLegacyEventContent : LegacyEventContent { + 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 |