public class Failure extends Message<LightningApi.Failure>
Message
,
LightningApi.Failure
Modifier and Type | Class and Description |
---|---|
static class |
Failure.FailureCode
Inner enum FailureCode for class Failure
Generated Automatically.
|
builder, wrapperFactory
Constructor and Description |
---|
Failure()
Empty Constructor
|
Failure(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
Failure(LightningApi.Failure apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
ChannelUpdate |
getChannelUpdate()
Getter for a list of channelUpdate.
|
int |
getCltvExpiry()
Getter for cltvExpiry.
|
Failure.FailureCode |
getCode()
Getter for code.
|
int |
getFailureSourceIndex()
Getter for failureSourceIndex.
|
int |
getFlags()
Getter for flags.
|
int |
getHeight()
Getter for height.
|
long |
getHtlcMsat()
Getter for htlcMsat.
|
byte[] |
getOnionSha256()
Getter for onionSha256.
|
void |
setChannelUpdate(ChannelUpdate value)
Setter for list of channelUpdate.
|
void |
setCltvExpiry(int value)
Setter for cltvExpiry.
|
void |
setCode(Failure.FailureCode value)
Setter for code.
|
void |
setFailureSourceIndex(int value)
Setter for failureSourceIndex.
|
void |
setFlags(int value)
Setter for flags.
|
void |
setHeight(int value)
Setter for height.
|
void |
setHtlcMsat(long value)
Setter for htlcMsat.
|
void |
setOnionSha256(byte[] value)
Setter for onionSha256.
|
equals, getApiObject, getMessageName, hashCode, populateRepeatedFields, toJson, toJsonAsString, toString, validate
public Failure()
public Failure(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public Failure(LightningApi.Failure apiObject)
public Failure.FailureCode getCode()
public void setCode(Failure.FailureCode value)
public ChannelUpdate getChannelUpdate() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setChannelUpdate(ChannelUpdate value)
public long getHtlcMsat()
public void setHtlcMsat(long value)
public byte[] getOnionSha256()
public void setOnionSha256(byte[] value)
public int getCltvExpiry()
public void setCltvExpiry(int value)
public int getFlags()
public void setFlags(int value)
public int getFailureSourceIndex()
public void setFailureSourceIndex(int value)
public int getHeight()
public void setHeight(int value)