blob: 0581a085f574b03bc5828f84c69670a73c356d25 (
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
|
using System.Text.Json.Serialization;
namespace LibMatrix.Federation.FederationTypes;
/// <summary>
/// This only covers v12 rooms for now?
/// </summary>
public class FederationTransaction {
/// <summary>
/// Up to 100 EDUs per transaction
/// </summary>
[JsonPropertyName("edus")]
public List<FederationEvent>? EphemeralEvents { get; set; }
[JsonPropertyName("origin")]
public required string Origin { get; set; }
[JsonPropertyName("origin_server_ts")]
public required long OriginServerTs { get; set; }
/// <summary>
/// Up to 50 PDUs per transaction
/// </summary>
[JsonPropertyName("pdus")]
public List<SignedFederationEvent>? PersistentEvents { get; set; }
}
|