You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
547 B
20 lines
547 B
2 years ago
|
using System;
|
||
|
|
||
|
namespace Win_in.Sfs.Wms.Dashboard.Host;
|
||
|
|
||
|
public class BaererToken
|
||
|
{
|
||
|
public string access_token { get; set; }
|
||
|
public long expires_in { get; set; } = 3600;
|
||
|
public string token_type { get; set; }
|
||
|
public string refresh_token { get; set; }
|
||
|
public string scope { get; set; }
|
||
|
}
|
||
|
|
||
|
public class TokenInfo
|
||
|
{
|
||
|
public BaererToken BaererToken { get; set; } = new();
|
||
|
public DateTimeOffset GetTime { get; set; } = DateTimeOffset.Now;
|
||
|
public DateTimeOffset ExpireTime => GetTime.AddSeconds(BaererToken.expires_in);
|
||
|
}
|