BotSharp/src/Infrastructure/BotSharp.Abstraction/Users/Models/Token.cs

17 lines
531 B
C#
Raw Normal View History

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