aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-02-14 23:05:04 +0800
committercrupest <crupest@outlook.com>2019-02-14 23:05:04 +0800
commit3c140656ebe6ed34dda9356a01dbff205651e641 (patch)
tree8b8ca7331c9510b897042737a5cbbc0f77b1b736 /Timeline/Entities
parentde90f0413553a23f8ebba1343c6e96c63e0c9748 (diff)
downloadtimeline-3c140656ebe6ed34dda9356a01dbff205651e641.tar.gz
timeline-3c140656ebe6ed34dda9356a01dbff205651e641.tar.bz2
timeline-3c140656ebe6ed34dda9356a01dbff205651e641.zip
Develop user token interface.
Diffstat (limited to 'Timeline/Entities')
-rw-r--r--Timeline/Entities/User.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/Timeline/Entities/User.cs b/Timeline/Entities/User.cs
index 3f7e9ac6..50463b57 100644
--- a/Timeline/Entities/User.cs
+++ b/Timeline/Entities/User.cs
@@ -11,5 +11,20 @@ namespace Timeline.Entities
public string Username { get; set; }
public string Password { get; set; }
public string[] Roles { get; set; }
+
+ public UserInfo GetUserInfo()
+ {
+ return new UserInfo
+ {
+ Username = this.Username,
+ Roles = this.Roles
+ };
+ }
+ }
+
+ public class UserInfo
+ {
+ public string Username { get; set; }
+ public string[] Roles { get; set; }
}
}