about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/Responses/StateEventResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Core/Responses/StateEventResponse.cs')
-rw-r--r--MatrixRoomUtils.Core/Responses/StateEventResponse.cs20
1 files changed, 12 insertions, 8 deletions
diff --git a/MatrixRoomUtils.Core/Responses/StateEventResponse.cs b/MatrixRoomUtils.Core/Responses/StateEventResponse.cs

index 422a557..a7f9187 100644 --- a/MatrixRoomUtils.Core/Responses/StateEventResponse.cs +++ b/MatrixRoomUtils.Core/Responses/StateEventResponse.cs
@@ -1,3 +1,4 @@ +using System.Text.Json.Nodes; using System.Text.Json.Serialization; using MatrixRoomUtils.Core.Interfaces; @@ -25,20 +26,23 @@ public class StateEventResponse : StateEvent { [JsonPropertyName("replaces_state")] public string ReplacesState { get; set; } - [JsonPropertyName("prev_content")] - public dynamic PrevContent { get; set; } - public class UnsignedData { [JsonPropertyName("age")] public ulong? Age { get; set; } - [JsonPropertyName("prev_content")] - public dynamic? PrevContent { get; set; } - [JsonPropertyName("redacted_because")] - public dynamic? RedactedBecause { get; set; } + public object? RedactedBecause { get; set; } [JsonPropertyName("transaction_id")] public string? TransactionId { get; set; } + + [JsonPropertyName("replaces_state")] + public string? ReplacesState { get; set; } + + [JsonPropertyName("prev_sender")] + public string? PrevSender { get; set; } + + [JsonPropertyName("prev_content")] + public JsonObject? PrevContent { get; set; } } -} \ No newline at end of file +}