diff options
Diffstat (limited to 'LibMatrix/StateEventTypes/Spec/RoomEncryptionEventData.cs')
-rw-r--r-- | LibMatrix/StateEventTypes/Spec/RoomEncryptionEventData.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/LibMatrix/StateEventTypes/Spec/RoomEncryptionEventData.cs b/LibMatrix/StateEventTypes/Spec/RoomEncryptionEventData.cs new file mode 100644 index 0000000..e16716e --- /dev/null +++ b/LibMatrix/StateEventTypes/Spec/RoomEncryptionEventData.cs @@ -0,0 +1,15 @@ +using System.Text.Json.Serialization; +using LibMatrix.Extensions; +using LibMatrix.Interfaces; + +namespace LibMatrix.StateEventTypes.Spec; + +[MatrixEvent(EventName = "m.room.encryption")] +public class RoomEncryptionEventData : IStateEventType { + [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; } +} |