aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/Token.cs
blob: ce5b92ff6ab503ee2a2af77152eee7c066f04218 (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
namespace Timeline.Entities
{
    public class CreateTokenRequest
    {
        public string Username { get; set; }
        public string Password { get; set; }
    }

    public class CreateTokenResponse
    {
        public bool Success { get; set; }
        public string Token { get; set; }
        public UserInfo UserInfo { get; set; }
    }

    public class TokenValidationRequest
    {
        public string Token { get; set; }
    }

    public class TokenValidationResponse
    {
        public bool IsValid { get; set; }
        public UserInfo UserInfo { get; set; }
    }
}