mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class ServerInfoData
|
|
{
|
|
/// <summary>
|
|
/// the BTCPay Server version
|
|
/// </summary>
|
|
public string Version { get; set; }
|
|
|
|
/// <summary>
|
|
/// the Tor hostname
|
|
/// </summary>
|
|
public string Onion { get; set; }
|
|
|
|
/// <summary>
|
|
/// the payment methods this server supports
|
|
/// </summary>
|
|
public IEnumerable<string> SupportedPaymentMethods { get; set; }
|
|
|
|
/// <summary>
|
|
/// are all chains fully synched
|
|
/// </summary>
|
|
public bool FullySynched { get; set; }
|
|
|
|
/// <summary>
|
|
/// detailed sync information per chain
|
|
/// </summary>
|
|
public IEnumerable<ServerInfoSyncStatusData> SyncStatus { get; set; }
|
|
}
|
|
|
|
public class ServerInfoSyncStatusData
|
|
{
|
|
public string CryptoCode { get; set; }
|
|
public int ChainHeight { get; set; }
|
|
public int? SyncHeight { get; set; }
|
|
public ServerInfoNodeData NodeInformation { get; set; }
|
|
}
|
|
|
|
public class ServerInfoNodeData
|
|
{
|
|
public int Headers { get; set; }
|
|
public int Blocks { get; set; }
|
|
public double VerificationProgress { get; set; }
|
|
}
|
|
}
|