aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/User/CreateUserParams.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-27 19:29:20 +0800
committercrupest <crupest@outlook.com>2021-04-27 19:29:20 +0800
commita665f5d894539cae5f4188e4a72ea9634b8c4ed0 (patch)
tree03aa9d578e13213018c178ba47755167e2ccc2d4 /BackEnd/Timeline/Services/User/CreateUserParams.cs
parent89e3c2103fa478ebc659a1b914e75d5138c06c08 (diff)
downloadtimeline-a665f5d894539cae5f4188e4a72ea9634b8c4ed0.tar.gz
timeline-a665f5d894539cae5f4188e4a72ea9634b8c4ed0.tar.bz2
timeline-a665f5d894539cae5f4188e4a72ea9634b8c4ed0.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/User/CreateUserParams.cs')
-rw-r--r--BackEnd/Timeline/Services/User/CreateUserParams.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/User/CreateUserParams.cs b/BackEnd/Timeline/Services/User/CreateUserParams.cs
new file mode 100644
index 00000000..e66f83dc
--- /dev/null
+++ b/BackEnd/Timeline/Services/User/CreateUserParams.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace Timeline.Services.User
+{
+ public class CreateUserParams
+ {
+ public CreateUserParams(string username, string password)
+ {
+ Username = username ?? throw new ArgumentNullException(nameof(username));
+ Password = password ?? throw new ArgumentNullException(nameof(password));
+ }
+
+ public string Username { get; set; }
+ public string Password { get; set; }
+ public string? Nickname { get; set; }
+ }
+}