aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/User.cs
blob: 50463b57e7152ec7dd7ae12b8d1fc4711a1b0408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Timeline.Entities
{
    public class User
    {
        public int Id { get; set; }
        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; }
    }
}