using System.Collections.Generic;
namespace BTCPayServer.Client.Models
{
public class ServerInfoData
{
///
/// the BTCPay Server version
///
public string Version { get; set; }
///
/// the Tor hostname
///
public string Onion { get; set; }
///
/// the payment methods this server supports
///
public IEnumerable SupportedPaymentMethods { get; set; }
///
/// are all chains fully synched
///
public bool FullySynched { get; set; }
///
/// detailed sync information per chain
///
public IEnumerable SyncStatus { get; set; }
}
public class SyncStatus
{
public string PaymentMethodId { get; set; }
public virtual bool Available { get; set; }
}
public class ServerInfoSyncStatusData : SyncStatus
{
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; }
}
}