public class InvoiceHTLC extends Message<LightningApi.InvoiceHTLC>
Message
,
LightningApi.InvoiceHTLC
Modifier and Type | Class and Description |
---|---|
static class |
InvoiceHTLC.CustomRecordsEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
InvoiceHTLC.CustomRecordsEntry
Inner class CustomRecordsEntry for class InvoiceHTLC.
|
Modifier and Type | Field and Description |
---|---|
protected InvoiceHTLC.CustomRecordsEntries |
customRecordsEntries |
builder, wrapperFactory
Constructor and Description |
---|
InvoiceHTLC()
Empty Constructor
|
InvoiceHTLC(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
InvoiceHTLC(LightningApi.InvoiceHTLC apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
int |
getAcceptHeight()
Getter for acceptHeight.
|
long |
getAcceptTime()
Getter for acceptTime.
|
AMP |
getAmp()
Getter for a list of amp.
|
long |
getAmtMsat()
Getter for amtMsat.
|
long |
getChanId()
Getter for chanId.
|
java.util.Map<java.lang.Long,byte[]> |
getCustomRecordsAsDetachedMap()
Returns customRecords as a detached map.
|
InvoiceHTLC.CustomRecordsEntries |
getCustomRecordsEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
int |
getExpiryHeight()
Getter for expiryHeight.
|
long |
getHtlcIndex()
Getter for htlcIndex.
|
long |
getMppTotalAmtMsat()
Getter for mppTotalAmtMsat.
|
long |
getResolveTime()
Getter for resolveTime.
|
InvoiceHTLCState |
getState()
Getter for state.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setAcceptHeight(int value)
Setter for acceptHeight.
|
void |
setAcceptTime(long value)
Setter for acceptTime.
|
void |
setAmp(AMP value)
Setter for list of amp.
|
void |
setAmtMsat(long value)
Setter for amtMsat.
|
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(InvoiceHTLC.CustomRecordsEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setExpiryHeight(int value)
Setter for expiryHeight.
|
void |
setHtlcIndex(long value)
Setter for htlcIndex.
|
void |
setMppTotalAmtMsat(long value)
Setter for mppTotalAmtMsat.
|
void |
setResolveTime(long value)
Setter for resolveTime.
|
void |
setState(InvoiceHTLCState value)
Setter for state.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
protected InvoiceHTLC.CustomRecordsEntries customRecordsEntries
public InvoiceHTLC()
public InvoiceHTLC(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public InvoiceHTLC(LightningApi.InvoiceHTLC apiObject)
public long getChanId()
public void setChanId(long value)
public long getHtlcIndex()
public void setHtlcIndex(long value)
public long getAmtMsat()
public void setAmtMsat(long value)
public int getAcceptHeight()
public void setAcceptHeight(int value)
public long getAcceptTime()
public void setAcceptTime(long value)
public long getResolveTime()
public void setResolveTime(long value)
public int getExpiryHeight()
public void setExpiryHeight(int value)
public InvoiceHTLCState getState()
public void setState(InvoiceHTLCState value)
public java.util.Map<java.lang.Long,byte[]> getCustomRecordsAsDetachedMap()
public void setCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
public InvoiceHTLC.CustomRecordsEntries getCustomRecordsEntries()
public void setCustomRecordsEntries(InvoiceHTLC.CustomRecordsEntries entries)
public long getMppTotalAmtMsat()
public void setMppTotalAmtMsat(long value)
public AMP getAmp() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setAmp(AMP value)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.InvoiceHTLC>