btcpayserver/BTCPayServer/Security/Bitpay/PairingCodeEntity.cs

44 lines
732 B
C#
Raw Normal View History

2020-06-28 21:44:35 -05:00
using System;
2019-10-19 00:54:43 +09:00
namespace BTCPayServer.Security.Bitpay
{
public class PairingCodeEntity
{
public string Id
{
get;
set;
}
public string Label
{
get;
set;
}
public string SIN
{
get;
set;
}
public DateTimeOffset CreatedTime
{
get;
set;
}
public DateTimeOffset Expiration
{
get;
set;
}
public string TokenValue
{
get;
set;
}
public bool IsExpired()
{
return DateTimeOffset.UtcNow > Expiration;
}
}
}