about summary refs log tree commit diff
path: root/LibMatrix.EventTypes/MatrixEvent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix.EventTypes/MatrixEvent.cs')
-rw-r--r--LibMatrix.EventTypes/MatrixEvent.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/LibMatrix.EventTypes/MatrixEvent.cs b/LibMatrix.EventTypes/MatrixEvent.cs
new file mode 100644

index 0000000..63f1e75 --- /dev/null +++ b/LibMatrix.EventTypes/MatrixEvent.cs
@@ -0,0 +1,9 @@ +using System.Text.Json.Serialization; + +namespace LibMatrix.EventTypes; + +public interface IMatrixEvent<out T> where T : MatrixEventContent; +public class MatrixEvent<T> : IMatrixEvent<T> where T : MatrixEventContent { + [JsonPropertyName("content")] + public T? Content { get; set; } +} \ No newline at end of file