From f11fe491349854526f8d13e8b62458baeb3b23b6 Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Fri, 9 Feb 2024 16:30:49 +0100 Subject: Consistently use EventId for event types --- .../Spec/State/RoomInfo/RoomEncryptionEventContent.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'LibMatrix.EventTypes/Spec/State/RoomInfo/RoomEncryptionEventContent.cs') diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomEncryptionEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomEncryptionEventContent.cs index 5ddd7f3..b49abfa 100644 --- a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomEncryptionEventContent.cs +++ b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomEncryptionEventContent.cs @@ -2,13 +2,16 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes.Spec.State; -[MatrixEvent(EventName = "m.room.encryption")] +[MatrixEvent(EventName = EventId)] public class RoomEncryptionEventContent : EventContent { public const string EventId = "m.room.encryption"; + [JsonPropertyName("algorithm")] public string? Algorithm { get; set; } + [JsonPropertyName("rotation_period_ms")] public ulong? RotationPeriodMs { get; set; } + [JsonPropertyName("rotation_period_msgs")] public ulong? RotationPeriodMsgs { get; set; } -} +} \ No newline at end of file -- cgit 1.4.1