aswi20220x00-gitlab/Backend/Models/Authentication/LoginResponse.cs @ 4bc99591
1 |
using Models.Enums; |
---|---|
2 |
|
3 |
namespace Models.Authentication; |
4 |
|
5 |
public class LoginResponse |
6 |
{
|
7 |
public LoginResponse(bool ok, string token, DateTime expiration, ERole role) |
8 |
{
|
9 |
Ok = ok; |
10 |
Token = token; |
11 |
Expiration = expiration; |
12 |
Role = role; |
13 |
}
|
14 |
|
15 |
public LoginResponse() |
16 |
{
|
17 |
}
|
18 |
|
19 |
#nullable disable |
20 |
public bool Ok { get; set; } |
21 |
public string Token { get; set; } |
22 |
public DateTime Expiration { get; set; } |
23 |
public ERole Role { get; set; } |
24 |
}
|
- « Předchozí
- 1
- 2
- Další »