public class NodeInfo extends Message<LightningApi.NodeInfo>
Message
,
LightningApi.NodeInfo
builder, wrapperFactory
Constructor and Description |
---|
NodeInfo()
Empty Constructor
|
NodeInfo(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
NodeInfo(LightningApi.NodeInfo apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ChannelEdge> |
getChannels()
Getter for a list of channels.
|
LightningNode |
getNode()
Getter for a list of node.
|
int |
getNumChannels()
Getter for numChannels.
|
long |
getTotalCapacity()
Getter for totalCapacity.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setChannels(java.util.List<ChannelEdge> valueList)
Setter for list of channels.
|
void |
setNode(LightningNode value)
Setter for list of node.
|
void |
setNumChannels(int value)
Setter for numChannels.
|
void |
setTotalCapacity(long value)
Setter for totalCapacity.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
public NodeInfo()
public NodeInfo(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public NodeInfo(LightningApi.NodeInfo apiObject)
public LightningNode getNode() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setNode(LightningNode value)
public int getNumChannels()
public void setNumChannels(int value)
public long getTotalCapacity()
public void setTotalCapacity(long value)
public java.util.List<ChannelEdge> getChannels() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setChannels(java.util.List<ChannelEdge> valueList)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.NodeInfo>