aswi20220x00-gitlab/Backend/Models/Authentication/LoginResponse.cs @ 4733e8c2
1 | cd91f841 | Vojtěch Bartička | using Models.Enums; |
---|---|---|---|
2 | |||
3 | c349bab3 | Lukáš Vlček | namespace Models.Authentication; |
4 | |||
5 | public class LoginResponse |
||
6 | {
|
||
7 | f0fde45c | Vojtěch Bartička | public LoginResponse(bool ok, string token, DateTime expiration, ERole role) |
8 | c349bab3 | Lukáš Vlček | {
|
9 | Ok = ok; |
||
10 | Token = token; |
||
11 | Expiration = expiration; |
||
12 | f0fde45c | Vojtěch Bartička | Role = role; |
13 | c349bab3 | Lukáš Vlček | }
|
14 | |||
15 | public LoginResponse() |
||
16 | {
|
||
17 | }
|
||
18 | |||
19 | 11f447b9 | Vojtěch Bartička | #nullable disable |
20 | c349bab3 | Lukáš Vlček | public bool Ok { get; set; } |
21 | public string Token { get; set; } |
||
22 | public DateTime Expiration { get; set; } |
||
23 | cd91f841 | Vojtěch Bartička | public ERole Role { get; set; } |
24 | c349bab3 | Lukáš Vlček | }
|