public class Hop extends Message<LightningApi.Hop>
Message
,
LightningApi.Hop
Modifier and Type | Class and Description |
---|---|
static class |
Hop.CustomRecordsEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
Hop.CustomRecordsEntry
Inner class CustomRecordsEntry for class Hop.
|
Modifier and Type | Field and Description |
---|---|
protected Hop.CustomRecordsEntries |
customRecordsEntries |
builder, wrapperFactory
Constructor and Description |
---|
Hop()
Empty Constructor
|
Hop(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
Hop(LightningApi.Hop apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
AMPRecord |
getAmpRecord()
Getter for a list of ampRecord.
|
long |
getAmtToForward()
Getter for amtToForward.
|
long |
getAmtToForwardMsat()
Getter for amtToForwardMsat.
|
long |
getChanCapacity()
Getter for chanCapacity.
|
long |
getChanId()
Getter for chanId.
|
java.util.Map<java.lang.Long,byte[]> |
getCustomRecordsAsDetachedMap()
Returns customRecords as a detached map.
|
Hop.CustomRecordsEntries |
getCustomRecordsEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
int |
getExpiry()
Getter for expiry.
|
long |
getFee()
Getter for fee.
|
long |
getFeeMsat()
Getter for feeMsat.
|
byte[] |
getMetadata()
Getter for metadata.
|
MPPRecord |
getMppRecord()
Getter for a list of mppRecord.
|
java.lang.String |
getPubKey()
Getter for pubKey.
|
boolean |
getTlvPayload()
Getter for tlvPayload.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setAmpRecord(AMPRecord value)
Setter for list of ampRecord.
|
void |
setAmtToForward(long value)
Setter for amtToForward.
|
void |
setAmtToForwardMsat(long value)
Setter for amtToForwardMsat.
|
void |
setChanCapacity(long value)
Setter for chanCapacity.
|
void |
setChanId(long value)
Setter for chanId.
|
void |
setCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
Populates customRecords with all the values in the map.
|
void |
setCustomRecordsEntries(Hop.CustomRecordsEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setExpiry(int value)
Setter for expiry.
|
void |
setFee(long value)
Setter for fee.
|
void |
setFeeMsat(long value)
Setter for feeMsat.
|
void |
setMetadata(byte[] value)
Setter for metadata.
|
void |
setMppRecord(MPPRecord value)
Setter for list of mppRecord.
|
void |
setPubKey(java.lang.String value)
Setter for pubKey.
|
void |
setTlvPayload(boolean value)
Setter for tlvPayload.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
protected Hop.CustomRecordsEntries customRecordsEntries
public Hop()
public Hop(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public Hop(LightningApi.Hop apiObject)
public long getChanId()
public void setChanId(long value)
public long getChanCapacity()
public void setChanCapacity(long value)
public long getAmtToForward()
public void setAmtToForward(long value)
public long getFee()
public void setFee(long value)
public int getExpiry()
public void setExpiry(int value)
public long getAmtToForwardMsat()
public void setAmtToForwardMsat(long value)
public long getFeeMsat()
public void setFeeMsat(long value)
public java.lang.String getPubKey()
public void setPubKey(java.lang.String value)
public boolean getTlvPayload()
public void setTlvPayload(boolean value)
public MPPRecord getMppRecord() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setMppRecord(MPPRecord value)
public AMPRecord getAmpRecord() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setAmpRecord(AMPRecord value)
public java.util.Map<java.lang.Long,byte[]> getCustomRecordsAsDetachedMap()
public void setCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
public Hop.CustomRecordsEntries getCustomRecordsEntries()
public void setCustomRecordsEntries(Hop.CustomRecordsEntries entries)
public byte[] getMetadata()
public void setMetadata(byte[] value)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.Hop>