mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-25 01:44:26 +01:00
51 lines
591 B
C#
51 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;
|
|
}
|
|
}
|
|
}
|