mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 01:53:52 +01:00
33 lines
909 B
C#
33 lines
909 B
C#
using System.Collections.Generic;
|
|
using BTCPayServer.Client.JsonConverters;
|
|
using BTCPayServer.Lightning;
|
|
using NBitcoin;
|
|
using NBitcoin.JsonConverters;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class LightningNodeInformationData
|
|
{
|
|
[JsonProperty("nodeURIs", ItemConverterType = typeof(NodeUriJsonConverter))]
|
|
public NodeInfo[] NodeURIs { get; set; }
|
|
public int BlockHeight { get; set; }
|
|
}
|
|
|
|
public class LightningChannelData
|
|
{
|
|
public string RemoteNode { get; set; }
|
|
|
|
public bool IsPublic { get; set; }
|
|
|
|
public bool IsActive { get; set; }
|
|
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
|
public LightMoney Capacity { get; set; }
|
|
|
|
[JsonConverter(typeof(LightMoneyJsonConverter))]
|
|
public LightMoney LocalBalance { get; set; }
|
|
|
|
public string ChannelPoint { get; set; }
|
|
}
|
|
}
|