diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-26 02:43:54 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-27 17:43:00 +0200 |
commit | 3ed00f732a284b5a3e96e52d4e3a71869135869b (patch) | |
tree | 308cdd5c9891a676dc55cbf0e0e998ab5a74b2d2 /MatrixRoomUtils.Core/StateEventTypes/Spec/RoomEncryptionEventData.cs | |
parent | Working state, refactored Rory&::LibMatrix (diff) | |
download | MatrixUtils-3ed00f732a284b5a3e96e52d4e3a71869135869b.tar.xz |
Dependency injection stuff
Diffstat (limited to 'MatrixRoomUtils.Core/StateEventTypes/Spec/RoomEncryptionEventData.cs')
-rw-r--r-- | MatrixRoomUtils.Core/StateEventTypes/Spec/RoomEncryptionEventData.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/MatrixRoomUtils.Core/StateEventTypes/Spec/RoomEncryptionEventData.cs b/MatrixRoomUtils.Core/StateEventTypes/Spec/RoomEncryptionEventData.cs new file mode 100644 index 0000000..8d0576d --- /dev/null +++ b/MatrixRoomUtils.Core/StateEventTypes/Spec/RoomEncryptionEventData.cs @@ -0,0 +1,15 @@ +using System.Text.Json.Serialization; +using MatrixRoomUtils.Core.Extensions; +using MatrixRoomUtils.Core.Interfaces; + +namespace MatrixRoomUtils.Core.StateEventTypes; + +[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; } +} \ No newline at end of file |