using System.Text.Json.Serialization;
namespace LibMatrix.Federation.FederationTypes;
///
/// This only covers v12 rooms for now?
///
public class FederationTransaction {
///
/// Up to 100 EDUs per transaction
///
[JsonPropertyName("edus")]
public List? EphemeralEvents { get; set; }
[JsonPropertyName("origin")]
public required string Origin { get; set; }
[JsonPropertyName("origin_server_ts")]
public required long OriginServerTs { get; set; }
///
/// Up to 50 PDUs per transaction
///
[JsonPropertyName("pdus")]
public List? PersistentEvents { get; set; }
}