about summary refs log tree commit diff
path: root/LibMatrix/Interfaces
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-15 09:50:45 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-15 09:50:45 +0200
commit6bd02248ccfbcb46960a6f39eaad23888d190eb5 (patch)
tree110578f31b6f9f70a7a1edab32fb3a34d6ad4f1a /LibMatrix/Interfaces
parentMedia moderator PoC works, abstract command handling to library (diff)
downloadLibMatrix-6bd02248ccfbcb46960a6f39eaad23888d190eb5.tar.xz
Some refactoring
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; }
+        }
+    }
+}