about summary refs log tree commit diff
path: root/LibMatrix/Responses/MessagesResponse.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-20 04:50:00 +0200
committerRory& <root@rory.gay>2025-06-20 04:50:00 +0200
commit6975119b7d21cafdd0620d35b9542fb5d47ef392 (patch)
tree790c0b0ccb7e5d9245ae70f4951260803ead0b94 /LibMatrix/Responses/MessagesResponse.cs
parentStart of federation code (diff)
downloadLibMatrix-unpacked-6975119b7d21cafdd0620d35b9542fb5d47ef392.tar.xz
Basic federation, move some response classes to the right namespace
Diffstat (limited to 'LibMatrix/Responses/MessagesResponse.cs')
-rw-r--r--LibMatrix/Responses/MessagesResponse.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/LibMatrix/Responses/MessagesResponse.cs b/LibMatrix/Responses/MessagesResponse.cs
new file mode 100644

index 0000000..4912add --- /dev/null +++ b/LibMatrix/Responses/MessagesResponse.cs
@@ -0,0 +1,17 @@ +using System.Text.Json.Serialization; + +namespace LibMatrix.Responses; + +public class MessagesResponse { + [JsonPropertyName("start")] + public string Start { get; set; } + + [JsonPropertyName("end")] + public string? End { get; set; } + + [JsonPropertyName("chunk")] + public List<StateEventResponse> Chunk { get; set; } = new(); + + [JsonPropertyName("state")] + public List<StateEventResponse> State { get; set; } = new(); +} \ No newline at end of file