blob: 2e27368d13a93b4b2c679692f18f8ea21921b659 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
namespace LibMatrix.Events;
public class StateEvent {
[JsonPropertyName("state_key")]
public string? StateKey { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("replaces_state")]
public string? ReplacesState { get; set; }
}
public class StateEventResponse : StateEvent {
[JsonPropertyName("origin_server_ts")]
public long? OriginServerTs { get; set; }
[JsonPropertyName("room_id")]
public string? RoomId { get; set; }
[JsonPropertyName("sender")]
public string? Sender { get; set; }
[JsonPropertyName("unsigned")]
public UnsignedData? Unsigned { get; set; }
[JsonPropertyName("event_id")]
public string? EventId { get; set; }
public class UnsignedData {
[JsonPropertyName("age")]
public ulong? Age { get; set; }
[JsonPropertyName("redacted_because")]
public object? RedactedBecause { get; set; }
[JsonPropertyName("transaction_id")]
public string? TransactionId { get; set; }
[JsonPropertyName("replaces_state")]
public string? ReplacesState { get; set; }
[JsonPropertyName("prev_sender")]
public string? PrevSender { get; set; }
[JsonPropertyName("prev_content")]
public JsonObject? PrevContent { get; set; }
}
}
|