Church.Net.API/LineMessaging/OAuthData/LineOAuthAccessTokenResponse.cs
2022-09-08 08:04:32 -07:00

24 lines
531 B
C#

using Newtonsoft.Json;
using System;
namespace LineMessaging
{
public class LineOAuthTokenResponse
{
[JsonProperty("access_token")]
public string AccessToken { get; set; }
[JsonProperty("expires_in")]
public long UnixtimeExpiresIn { get; set; }
[JsonIgnore]
public DateTime ExpiresIn
{
get { return UnixtimeExpiresIn.FromUnixTime(); }
}
[JsonProperty("token_type")]
public string TokenType { get; set; } = "Bearer";
}
}