blob: d86f54605c0c614e0827ae5ba9adf63606bbd692 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
using System.Text.Json.Serialization;
namespace MatrixRoomUtils.Core;
public class StateEventResponse
{
[JsonPropertyName("Content")]
public dynamic Content { get; set; }
[JsonPropertyName("origin_server_ts")]
public long OriginServerTs { get; set; }
[JsonPropertyName("RoomId")]
public string RoomId { get; set; }
[JsonPropertyName("Sender")]
public string Sender { get; set; }
[JsonPropertyName("StateKey")]
public string StateKey { get; set; }
[JsonPropertyName("Type")]
public string Type { get; set; }
[JsonPropertyName("Unsigned")]
public dynamic Unsigned { get; set; }
[JsonPropertyName("EventId")]
public string EventId { get; set; }
[JsonPropertyName("UserId")]
public string UserId { get; set; }
[JsonPropertyName("ReplacesState")]
public string ReplacesState { get; set; }
[JsonPropertyName("PrevContent")]
public dynamic PrevContent { get; set; }
}
public class StateEventResponse<T> : StateEventResponse where T : class
{
public T content { get; set; }
}
|