diff options
Diffstat (limited to '')
-rw-r--r-- | LibMatrix.EventTypes.Abstractions/MatrixEvent.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs b/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs index 0e548c6..46e7757 100644 --- a/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs +++ b/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs @@ -2,7 +2,10 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes; -public interface IMatrixEvent<out T> where T : BaseMatrixEventContent; +public interface IBaseMatrixEvent { + +} +public partial interface IMatrixEvent<out T> : IBaseMatrixEvent where T : BaseMatrixEventContent; public class MatrixEvent<T> : IMatrixEvent<T> where T : BaseMatrixEventContent { [JsonPropertyName("content")] public T? Content { get; set; } |