about summary refs log tree commit diff
path: root/LibMatrix/StateEventTypes/Spec/RoomTopicEventData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/StateEventTypes/Spec/RoomTopicEventData.cs')
-rw-r--r--LibMatrix/StateEventTypes/Spec/RoomTopicEventData.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/LibMatrix/StateEventTypes/Spec/RoomTopicEventData.cs b/LibMatrix/StateEventTypes/Spec/RoomTopicEventData.cs
new file mode 100644
index 0000000..0fd0df6
--- /dev/null
+++ b/LibMatrix/StateEventTypes/Spec/RoomTopicEventData.cs
@@ -0,0 +1,12 @@
+using System.Text.Json.Serialization;
+using LibMatrix.Extensions;
+using LibMatrix.Interfaces;
+
+namespace LibMatrix.StateEventTypes.Spec;
+
+[MatrixEvent(EventName = "m.room.topic")]
+[MatrixEvent(EventName = "org.matrix.msc3765.topic", Legacy = true)]
+public class RoomTopicEventData : IStateEventType {
+    [JsonPropertyName("topic")]
+    public string? Topic { get; set; }
+}