about summary refs log tree commit diff
path: root/LibMatrix.EventTypes.Abstractions/MatrixEvent.cs
blob: 46e775734f20820f6759749bf6ffa56d553729d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
using System.Text.Json.Serialization;

namespace LibMatrix.EventTypes;

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; }
}