about summary refs log tree commit diff
path: root/LibMatrix/UserIdAndReason.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/UserIdAndReason.cs')
-rw-r--r--LibMatrix/UserIdAndReason.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/LibMatrix/UserIdAndReason.cs b/LibMatrix/UserIdAndReason.cs
index a0c2acd..09dc461 100644
--- a/LibMatrix/UserIdAndReason.cs
+++ b/LibMatrix/UserIdAndReason.cs
@@ -2,9 +2,10 @@ using System.Text.Json.Serialization;
 
 namespace LibMatrix;
 
-internal class UserIdAndReason {
+internal class UserIdAndReason(string? userId = null, string? reason = null) {
     [JsonPropertyName("user_id")]
-    public string UserId { get; set; }
+    public string UserId { get; set; } = userId;
+
     [JsonPropertyName("reason")]
-    public string? Reason { get; set; }
+    public string? Reason { get; set; } = reason;
 }