btcpayserver/BTCPayServer/Authentication/PairingCodeEntity.cs

51 lines
870 B
C#
Raw Normal View History

2017-09-13 08:47:34 +02:00
using System;
using System.Collections.Generic;
using System.Text;
namespace BTCPayServer.Authentication
{
public class PairingCodeEntity
{
public string Id
{
get;
set;
}
public string Facade
{
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;
}
2017-09-13 08:47:34 +02:00
public bool IsExpired()
{
return DateTimeOffset.UtcNow > Expiration;
}
}
2017-09-13 08:47:34 +02:00
}