24 lines
531 B
C#
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";
|
|
}
|
|
}
|