about summary refs log tree commit diff
path: root/LibMatrix/Interfaces/EventContent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/Interfaces/EventContent.cs')
-rw-r--r--LibMatrix/Interfaces/EventContent.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/LibMatrix/Interfaces/EventContent.cs b/LibMatrix/Interfaces/EventContent.cs
new file mode 100644
index 0000000..b21cfc7
--- /dev/null
+++ b/LibMatrix/Interfaces/EventContent.cs
@@ -0,0 +1,26 @@
+using System.Text.Json.Serialization;
+
+namespace LibMatrix.Interfaces;
+
+public abstract class EventContent {
+    [JsonPropertyName("m.relates_to")]
+    public MessageRelatesTo? RelatesTo { get; set; }
+
+    [JsonPropertyName("m.new_content")]
+    public EventContent? NewContent { get; set; }
+
+    public class MessageRelatesTo {
+        [JsonPropertyName("m.in_reply_to")]
+        public EventInReplyTo? InReplyTo { get; set; }
+
+
+
+        public abstract class EventInReplyTo {
+            [JsonPropertyName("event_id")]
+            public string EventId { get; set; }
+
+            [JsonPropertyName("rel_type")]
+            public string RelType { get; set; }
+        }
+    }
+}