aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http/User.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-29 00:17:45 +0800
committercrupest <crupest@outlook.com>2020-01-29 00:17:45 +0800
commitb6043126fae039c58512f60a576b10925b06df4c (patch)
tree480e4e0fa03f0736cfee97876603fdb87d3fd3bd /Timeline/Models/Http/User.cs
parent1a653fca9e4e3371dd65782c987a736e2259d66a (diff)
downloadtimeline-b6043126fae039c58512f60a576b10925b06df4c.tar.gz
timeline-b6043126fae039c58512f60a576b10925b06df4c.tar.bz2
timeline-b6043126fae039c58512f60a576b10925b06df4c.zip
...
Diffstat (limited to 'Timeline/Models/Http/User.cs')
-rw-r--r--Timeline/Models/Http/User.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/Timeline/Models/Http/User.cs b/Timeline/Models/Http/User.cs
index 69bfacf2..b3812f48 100644
--- a/Timeline/Models/Http/User.cs
+++ b/Timeline/Models/Http/User.cs
@@ -1,14 +1,10 @@
+using System;
using System.ComponentModel.DataAnnotations;
using Timeline.Models.Validation;
namespace Timeline.Models.Http
{
- public class User
- {
- public string Username { get; set; } = default!;
- public bool Administrator { get; set; }
- }
-
+ [Obsolete("Remove this.")]
public class UserPutRequest
{
[Required]
@@ -17,6 +13,7 @@ namespace Timeline.Models.Http
public bool? Administrator { get; set; }
}
+ [Obsolete("Remove this.")]
public class UserPatchRequest
{
public string? Password { get; set; }