2020-05-29 10:04:28 +02:00
|
|
|
using BTCPayServer.Client.JsonConverters;
|
2020-05-29 02:00:13 +02:00
|
|
|
using BTCPayServer.Lightning;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
|
|
{
|
|
|
|
public class LightningNodeInformationData
|
|
|
|
{
|
2020-06-08 23:40:58 +09:00
|
|
|
[JsonProperty("nodeURIs", ItemConverterType = typeof(NodeUriJsonConverter))]
|
|
|
|
public NodeInfo[] NodeURIs { get; set; }
|
2020-05-29 02:00:13 +02:00
|
|
|
public int BlockHeight { get; set; }
|
2022-09-28 02:34:34 +02:00
|
|
|
public string Alias { get; set; }
|
|
|
|
public string Color { get; set; }
|
|
|
|
public string Version { get; set; }
|
|
|
|
public long? PeersCount { get; set; }
|
|
|
|
public long? ActiveChannelsCount { get; set; }
|
|
|
|
public long? InactiveChannelsCount { get; set; }
|
|
|
|
public long? PendingChannelsCount { get; set; }
|
2020-05-29 02:00:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public class LightningChannelData
|
|
|
|
{
|
|
|
|
public string RemoteNode { get; set; }
|
|
|
|
|
|
|
|
public bool IsPublic { get; set; }
|
|
|
|
|
|
|
|
public bool IsActive { get; set; }
|
|
|
|
|
2020-06-08 23:40:58 +09:00
|
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
2020-05-29 02:00:13 +02:00
|
|
|
public LightMoney Capacity { get; set; }
|
|
|
|
|
2020-06-08 23:40:58 +09:00
|
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
2020-05-29 02:00:13 +02:00
|
|
|
public LightMoney LocalBalance { get; set; }
|
|
|
|
|
|
|
|
public string ChannelPoint { get; set; }
|
|
|
|
}
|
|
|
|
}
|