public class ChannelEdge extends Message<LightningApi.ChannelEdge>
Message
,
LightningApi.ChannelEdge
Modifier and Type | Class and Description |
---|---|
static class |
ChannelEdge.CustomRecordsEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
ChannelEdge.CustomRecordsEntry
Inner class CustomRecordsEntry for class ChannelEdge.
|
Modifier and Type | Field and Description |
---|---|
protected ChannelEdge.CustomRecordsEntries |
customRecordsEntries |
builder, wrapperFactory
Constructor and Description |
---|
ChannelEdge()
Empty Constructor
|
ChannelEdge(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
ChannelEdge(LightningApi.ChannelEdge apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
long |
getCapacity()
Getter for capacity.
|
long |
getChannelId()
Getter for channelId.
|
java.lang.String |
getChanPoint()
Getter for chanPoint.
|
java.util.Map<java.lang.Long,byte[]> |
getCustomRecordsAsDetachedMap()
Returns customRecords as a detached map.
|
ChannelEdge.CustomRecordsEntries |
getCustomRecordsEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
int |
getLastUpdate()
Getter for lastUpdate.
|
RoutingPolicy |
getNode1Policy()
Getter for a list of node1Policy.
|
java.lang.String |
getNode1Pub()
Getter for node1Pub.
|
RoutingPolicy |
getNode2Policy()
Getter for a list of node2Policy.
|
java.lang.String |
getNode2Pub()
Getter for node2Pub.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setCapacity(long value)
Setter for capacity.
|
void |
setChannelId(long value)
Setter for channelId.
|
void |
setChanPoint(java.lang.String value)
Setter for chanPoint.
|
void |
setCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
Populates customRecords with all the values in the map.
|
void |
setCustomRecordsEntries(ChannelEdge.CustomRecordsEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setLastUpdate(int value)
Setter for lastUpdate.
|
void |
setNode1Policy(RoutingPolicy value)
Setter for list of node1Policy.
|
void |
setNode1Pub(java.lang.String value)
Setter for node1Pub.
|
void |
setNode2Policy(RoutingPolicy value)
Setter for list of node2Policy.
|
void |
setNode2Pub(java.lang.String value)
Setter for node2Pub.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
protected ChannelEdge.CustomRecordsEntries customRecordsEntries
public ChannelEdge()
public ChannelEdge(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public ChannelEdge(LightningApi.ChannelEdge apiObject)
public long getChannelId()
public void setChannelId(long value)
public java.lang.String getChanPoint()
public void setChanPoint(java.lang.String value)
public int getLastUpdate()
public void setLastUpdate(int value)
public java.lang.String getNode1Pub()
public void setNode1Pub(java.lang.String value)
public java.lang.String getNode2Pub()
public void setNode2Pub(java.lang.String value)
public long getCapacity()
public void setCapacity(long value)
public RoutingPolicy getNode1Policy() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setNode1Policy(RoutingPolicy value)
public RoutingPolicy getNode2Policy() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setNode2Policy(RoutingPolicy value)
public java.util.Map<java.lang.Long,byte[]> getCustomRecordsAsDetachedMap()
public void setCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
public ChannelEdge.CustomRecordsEntries getCustomRecordsEntries()
public void setCustomRecordsEntries(ChannelEdge.CustomRecordsEntries entries)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.ChannelEdge>