about summary refs log tree commit diff
path: root/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix.EventTypes.Abstractions/MatrixEvent.cs')
-rw-r--r--LibMatrix.EventTypes.Abstractions/MatrixEvent.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs b/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs
new file mode 100644
index 0000000..0e548c6
--- /dev/null
+++ b/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs
@@ -0,0 +1,9 @@
+using System.Text.Json.Serialization;
+
+namespace LibMatrix.EventTypes;
+
+public interface IMatrixEvent<out T> where T : BaseMatrixEventContent;
+public class MatrixEvent<T> : IMatrixEvent<T> where T : BaseMatrixEventContent {
+    [JsonPropertyName("content")]
+    public T? Content { get; set; }
+}
\ No newline at end of file