public class PaymentStatus extends Message<RouterOuterClass.PaymentStatus>
Message
,
RouterOuterClass.PaymentStatus
builder, wrapperFactory
Constructor and Description |
---|
PaymentStatus()
Empty Constructor
|
PaymentStatus(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
PaymentStatus(RouterOuterClass.PaymentStatus apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
java.util.List<HTLCAttempt> |
getHtlcs()
Getter for a list of htlcs.
|
byte[] |
getPreimage()
Getter for preimage.
|
PaymentState |
getState()
Getter for state.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setHtlcs(java.util.List<HTLCAttempt> valueList)
Setter for list of htlcs.
|
void |
setPreimage(byte[] value)
Setter for preimage.
|
void |
setState(PaymentState value)
Setter for state.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
public PaymentStatus()
public PaymentStatus(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public PaymentStatus(RouterOuterClass.PaymentStatus apiObject)
public PaymentState getState()
public void setState(PaymentState value)
public byte[] getPreimage()
public void setPreimage(byte[] value)
public java.util.List<HTLCAttempt> getHtlcs() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setHtlcs(java.util.List<HTLCAttempt> valueList)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<RouterOuterClass.PaymentStatus>