about summary refs log tree commit diff
path: root/LibMatrix/Interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/Interfaces')
-rw-r--r--LibMatrix/Interfaces/IStateEventType.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/LibMatrix/Interfaces/IStateEventType.cs b/LibMatrix/Interfaces/IStateEventType.cs
index 13a0d05..f2e4a3b 100644
--- a/LibMatrix/Interfaces/IStateEventType.cs
+++ b/LibMatrix/Interfaces/IStateEventType.cs
@@ -1,3 +1,23 @@
+using System.Text.Json.Serialization;
+
 namespace LibMatrix.Interfaces;
 
-public interface IStateEventType { }
+public abstract class EventContent {
+    [JsonPropertyName("m.relates_to")]
+    public virtual MessageRelatesTo? RelatesTo { get; set; }
+
+    [JsonPropertyName("m.new_content")]
+    public virtual EventContent? NewContent { get; set; }
+
+    public abstract class MessageRelatesTo {
+        [JsonPropertyName("m.in_reply_to")]
+        public EventInReplyTo? InReplyTo { get; set; }
+
+
+
+        public abstract class EventInReplyTo {
+            [JsonPropertyName("event_id")]
+            public string EventId { get; set; }
+        }
+    }
+}