diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2024-06-01 19:02:28 +0200 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2024-06-01 19:03:05 +0200 |
commit | a129b321998614b20e4ebb8a7c1632553ebee981 (patch) | |
tree | f4e16f7b1bbeffc21e81f8749e4980994242ff19 /LibMatrix.EventTypes.Abstractions/MatrixEvent.cs | |
parent | Event serialisation fix (diff) | |
download | LibMatrix-a129b321998614b20e4ebb8a7c1632553ebee981.tar.xz |
Split event abstractions
Diffstat (limited to 'LibMatrix.EventTypes.Abstractions/MatrixEvent.cs')
-rw-r--r-- | LibMatrix.EventTypes.Abstractions/MatrixEvent.cs | 9 |
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 |