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