about summary refs log tree commit diff
path: root/LibMatrix/Responses/WhoAmIResponse.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/WhoAmIResponse.cs
parentStart of federation code (diff)
downloadLibMatrix-6975119b7d21cafdd0620d35b9542fb5d47ef392.tar.xz
Basic federation, move some response classes to the right namespace
Diffstat (limited to 'LibMatrix/Responses/WhoAmIResponse.cs')
-rw-r--r--LibMatrix/Responses/WhoAmIResponse.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/LibMatrix/Responses/WhoAmIResponse.cs b/LibMatrix/Responses/WhoAmIResponse.cs
new file mode 100644

index 0000000..db47152 --- /dev/null +++ b/LibMatrix/Responses/WhoAmIResponse.cs
@@ -0,0 +1,14 @@ +using System.Text.Json.Serialization; + +namespace LibMatrix.Responses; + +public class WhoAmIResponse { + [JsonPropertyName("user_id")] + public required string UserId { get; set; } + + [JsonPropertyName("device_id")] + public string? DeviceId { get; set; } + + [JsonPropertyName("is_guest")] + public bool? IsGuest { get; set; } +} \ No newline at end of file