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; }
|
|
|
|
}
|
|
|
|
|
|
|
|
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; }
|
|
|
|
}
|
|
|
|
}
|