about summary refs log tree commit diff
path: root/LibMatrix/Responses/LoginResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/Responses/LoginResponse.cs')
-rw-r--r--LibMatrix/Responses/LoginResponse.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/LibMatrix/Responses/LoginResponse.cs b/LibMatrix/Responses/LoginResponse.cs
index 2800a9c..175f337 100644
--- a/LibMatrix/Responses/LoginResponse.cs
+++ b/LibMatrix/Responses/LoginResponse.cs
@@ -15,3 +15,24 @@ public class LoginResponse {
     [JsonPropertyName("user_id")]
     public string UserId { get; set; }
 }
+public class LoginRequest {
+    [JsonPropertyName("type")]
+    public string Type { get; set; } = "m.login.password";
+
+    [JsonPropertyName("identifier")]
+    public LoginIdentifier Identifier { get; set; } = new();
+
+    [JsonPropertyName("password")]
+    public string Password { get; set; } = "";
+
+    [JsonPropertyName("initial_device_display_name")]
+    public string InitialDeviceDisplayName { get; set; } = "Rory&::LibMatrix";
+
+    public class LoginIdentifier {
+        [JsonPropertyName("type")]
+        public string Type { get; set; } = "m.id.user";
+
+        [JsonPropertyName("user")]
+        public string User { get; set; } = "";
+    }
+}