public class PayReq extends Message<LightningApi.PayReq>
Message
,
LightningApi.PayReq
Modifier and Type | Class and Description |
---|---|
static class |
PayReq.FeaturesEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
PayReq.FeaturesEntry
Inner class FeaturesEntry for class PayReq.
|
Modifier and Type | Field and Description |
---|---|
protected PayReq.FeaturesEntries |
featuresEntries |
builder, wrapperFactory
Constructor and Description |
---|
PayReq()
Empty Constructor
|
PayReq(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
PayReq(LightningApi.PayReq apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
long |
getCltvExpiry()
Getter for cltvExpiry.
|
java.lang.String |
getDescription()
Getter for description.
|
java.lang.String |
getDescriptionHash()
Getter for descriptionHash.
|
java.lang.String |
getDestination()
Getter for destination.
|
long |
getExpiry()
Getter for expiry.
|
java.lang.String |
getFallbackAddr()
Getter for fallbackAddr.
|
java.util.Map<java.lang.Integer,Feature> |
getFeaturesAsDetachedMap()
Returns features as a detached map.
|
PayReq.FeaturesEntries |
getFeaturesEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
long |
getNumMsat()
Getter for numMsat.
|
long |
getNumSatoshis()
Getter for numSatoshis.
|
byte[] |
getPaymentAddr()
Getter for paymentAddr.
|
java.lang.String |
getPaymentHash()
Getter for paymentHash.
|
java.util.List<RouteHint> |
getRouteHints()
Getter for a list of routeHints.
|
long |
getTimestamp()
Getter for timestamp.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setCltvExpiry(long value)
Setter for cltvExpiry.
|
void |
setDescription(java.lang.String value)
Setter for description.
|
void |
setDescriptionHash(java.lang.String value)
Setter for descriptionHash.
|
void |
setDestination(java.lang.String value)
Setter for destination.
|
void |
setExpiry(long value)
Setter for expiry.
|
void |
setFallbackAddr(java.lang.String value)
Setter for fallbackAddr.
|
void |
setFeatures(java.util.Map<java.lang.Integer,Feature> valueMap)
Populates features with all the values in the map.
|
void |
setFeaturesEntries(PayReq.FeaturesEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setNumMsat(long value)
Setter for numMsat.
|
void |
setNumSatoshis(long value)
Setter for numSatoshis.
|
void |
setPaymentAddr(byte[] value)
Setter for paymentAddr.
|
void |
setPaymentHash(java.lang.String value)
Setter for paymentHash.
|
void |
setRouteHints(java.util.List<RouteHint> valueList)
Setter for list of routeHints.
|
void |
setTimestamp(long value)
Setter for timestamp.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
protected PayReq.FeaturesEntries featuresEntries
public PayReq()
public PayReq(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public PayReq(LightningApi.PayReq apiObject)
public java.lang.String getDestination()
public void setDestination(java.lang.String value)
public java.lang.String getPaymentHash()
public void setPaymentHash(java.lang.String value)
public long getNumSatoshis()
public void setNumSatoshis(long value)
public long getTimestamp()
public void setTimestamp(long value)
public long getExpiry()
public void setExpiry(long value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.String getDescriptionHash()
public void setDescriptionHash(java.lang.String value)
public java.lang.String getFallbackAddr()
public void setFallbackAddr(java.lang.String value)
public long getCltvExpiry()
public void setCltvExpiry(long value)
public java.util.List<RouteHint> getRouteHints() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setRouteHints(java.util.List<RouteHint> valueList)
public byte[] getPaymentAddr()
public void setPaymentAddr(byte[] value)
public long getNumMsat()
public void setNumMsat(long value)
public java.util.Map<java.lang.Integer,Feature> getFeaturesAsDetachedMap()
public void setFeatures(java.util.Map<java.lang.Integer,Feature> valueMap)
public PayReq.FeaturesEntries getFeaturesEntries()
public void setFeaturesEntries(PayReq.FeaturesEntries entries)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.PayReq>