2023-08-07 10:21:31 +00:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
2023-06-11 23:46:02 +00:00
|
|
|
namespace BotSharp.Abstraction.Users.Models;
|
|
|
|
|
|
|
|
|
|
public class Token
|
|
|
|
|
{
|
2023-08-07 10:21:31 +00:00
|
|
|
[JsonPropertyName("access_token")]
|
2023-06-11 23:46:02 +00:00
|
|
|
public string AccessToken { get; set; } = string.Empty;
|
2023-08-07 10:21:31 +00:00
|
|
|
[JsonPropertyName("refresh_token")]
|
2023-06-11 23:46:02 +00:00
|
|
|
public string RefreshToken { get; set; } = string.Empty;
|
2023-08-07 10:21:31 +00:00
|
|
|
[JsonPropertyName("token_type")]
|
2023-06-11 23:46:02 +00:00
|
|
|
public string TokenType { get; set; } = string.Empty;
|
2023-08-07 10:21:31 +00:00
|
|
|
[JsonPropertyName("expires")]
|
2023-06-11 23:46:02 +00:00
|
|
|
public int ExpireTime { get; set; }
|
|
|
|
|
public string Scope { get; set; } = string.Empty;
|
|
|
|
|
}
|