mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
50 lines
591 B
C#
50 lines
591 B
C#
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 PairingTime
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public DateTimeOffset PairingExpiration
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public string Token
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public bool IsExpired()
|
|
{
|
|
return DateTimeOffset.UtcNow > PairingExpiration;
|
|
}
|
|
}
|
|
}
|