about summary refs log tree commit diff
path: root/LibMatrix/WhoAmIResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/WhoAmIResponse.cs')
-rw-r--r--LibMatrix/WhoAmIResponse.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/LibMatrix/WhoAmIResponse.cs b/LibMatrix/WhoAmIResponse.cs
new file mode 100644
index 0000000..f461c9b
--- /dev/null
+++ b/LibMatrix/WhoAmIResponse.cs
@@ -0,0 +1,13 @@
+using System.Text.Json.Serialization;
+
+namespace LibMatrix;
+
+public class WhoAmIResponse {
+    [JsonPropertyName("user_id")]
+    public string UserId { get; set; } = null!;
+
+    [JsonPropertyName("device_id")]
+    public string? DeviceId { get; set; }
+    [JsonPropertyName("is_guest")]
+    public bool? IsGuest { get; set; }
+}
\ No newline at end of file