2020-10-24 23:23:22 +02:00
|
|
|
|
using Birdmap.DAL.Entities;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace Birdmap.API.DTOs
|
|
|
|
|
{
|
2020-11-12 18:13:23 +01:00
|
|
|
|
public record AuthenticateResponse
|
2020-10-24 23:23:22 +02:00
|
|
|
|
{
|
|
|
|
|
[JsonProperty("user_name")]
|
|
|
|
|
public string Username { get; set; }
|
|
|
|
|
[JsonProperty("user_role")]
|
|
|
|
|
public Roles UserRole { get; set; }
|
|
|
|
|
[JsonProperty("access_token")]
|
|
|
|
|
public string AccessToken { get; set; }
|
|
|
|
|
[JsonProperty("token_type")]
|
|
|
|
|
public string TokenType { get; set; }
|
|
|
|
|
[JsonProperty("expires_in")]
|
|
|
|
|
public double ExpiresIn { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|