public class GetInfoResponse extends Message<LightningApi.GetInfoResponse>
Message
,
LightningApi.GetInfoResponse
Modifier and Type | Class and Description |
---|---|
static class |
GetInfoResponse.FeaturesEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
GetInfoResponse.FeaturesEntry
Inner class FeaturesEntry for class GetInfoResponse.
|
Modifier and Type | Field and Description |
---|---|
protected GetInfoResponse.FeaturesEntries |
featuresEntries |
builder, wrapperFactory
Constructor and Description |
---|
GetInfoResponse()
Empty Constructor
|
GetInfoResponse(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
GetInfoResponse(LightningApi.GetInfoResponse apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlias()
Getter for alias.
|
long |
getBestHeaderTimestamp()
Getter for bestHeaderTimestamp.
|
java.lang.String |
getBlockHash()
Getter for blockHash.
|
int |
getBlockHeight()
Getter for blockHeight.
|
java.util.List<Chain> |
getChains()
Getter for a list of chains.
|
java.lang.String |
getColor()
Getter for color.
|
java.lang.String |
getCommitHash()
Getter for commitHash.
|
java.util.Map<java.lang.Integer,Feature> |
getFeaturesAsDetachedMap()
Returns features as a detached map.
|
GetInfoResponse.FeaturesEntries |
getFeaturesEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
java.lang.String |
getIdentityPubkey()
Getter for identityPubkey.
|
int |
getNumActiveChannels()
Getter for numActiveChannels.
|
int |
getNumInactiveChannels()
Getter for numInactiveChannels.
|
int |
getNumPeers()
Getter for numPeers.
|
int |
getNumPendingChannels()
Getter for numPendingChannels.
|
boolean |
getRequireHtlcInterceptor()
Getter for requireHtlcInterceptor.
|
boolean |
getStoreFinalHtlcResolutions()
Getter for storeFinalHtlcResolutions.
|
boolean |
getSyncedToChain()
Getter for syncedToChain.
|
boolean |
getSyncedToGraph()
Getter for syncedToGraph.
|
boolean |
getTestnet()
Getter for testnet.
|
java.util.List<java.lang.String> |
getUris()
Getter for a list of uris.
|
java.lang.String |
getVersion()
Getter for version.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setAlias(java.lang.String value)
Setter for alias.
|
void |
setBestHeaderTimestamp(long value)
Setter for bestHeaderTimestamp.
|
void |
setBlockHash(java.lang.String value)
Setter for blockHash.
|
void |
setBlockHeight(int value)
Setter for blockHeight.
|
void |
setChains(java.util.List<Chain> valueList)
Setter for list of chains.
|
void |
setColor(java.lang.String value)
Setter for color.
|
void |
setCommitHash(java.lang.String value)
Setter for commitHash.
|
void |
setFeatures(java.util.Map<java.lang.Integer,Feature> valueMap)
Populates features with all the values in the map.
|
void |
setFeaturesEntries(GetInfoResponse.FeaturesEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setIdentityPubkey(java.lang.String value)
Setter for identityPubkey.
|
void |
setNumActiveChannels(int value)
Setter for numActiveChannels.
|
void |
setNumInactiveChannels(int value)
Setter for numInactiveChannels.
|
void |
setNumPeers(int value)
Setter for numPeers.
|
void |
setNumPendingChannels(int value)
Setter for numPendingChannels.
|
void |
setRequireHtlcInterceptor(boolean value)
Setter for requireHtlcInterceptor.
|
void |
setStoreFinalHtlcResolutions(boolean value)
Setter for storeFinalHtlcResolutions.
|
void |
setSyncedToChain(boolean value)
Setter for syncedToChain.
|
void |
setSyncedToGraph(boolean value)
Setter for syncedToGraph.
|
void |
setTestnet(boolean value)
Setter for testnet.
|
void |
setUris(java.util.List<java.lang.String> valueList)
Setter for list of uris.
|
void |
setVersion(java.lang.String value)
Setter for version.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
protected GetInfoResponse.FeaturesEntries featuresEntries
public GetInfoResponse()
public GetInfoResponse(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public GetInfoResponse(LightningApi.GetInfoResponse apiObject)
public java.lang.String getVersion()
public void setVersion(java.lang.String value)
public java.lang.String getCommitHash()
public void setCommitHash(java.lang.String value)
public java.lang.String getIdentityPubkey()
public void setIdentityPubkey(java.lang.String value)
public java.lang.String getAlias()
public void setAlias(java.lang.String value)
public java.lang.String getColor()
public void setColor(java.lang.String value)
public int getNumPendingChannels()
public void setNumPendingChannels(int value)
public int getNumActiveChannels()
public void setNumActiveChannels(int value)
public int getNumInactiveChannels()
public void setNumInactiveChannels(int value)
public int getNumPeers()
public void setNumPeers(int value)
public int getBlockHeight()
public void setBlockHeight(int value)
public java.lang.String getBlockHash()
public void setBlockHash(java.lang.String value)
public long getBestHeaderTimestamp()
public void setBestHeaderTimestamp(long value)
public boolean getSyncedToChain()
public void setSyncedToChain(boolean value)
public boolean getSyncedToGraph()
public void setSyncedToGraph(boolean value)
public boolean getTestnet()
public void setTestnet(boolean value)
public java.util.List<Chain> getChains() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setChains(java.util.List<Chain> valueList)
public java.util.List<java.lang.String> getUris() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setUris(java.util.List<java.lang.String> valueList)
public java.util.Map<java.lang.Integer,Feature> getFeaturesAsDetachedMap()
public void setFeatures(java.util.Map<java.lang.Integer,Feature> valueMap)
public GetInfoResponse.FeaturesEntries getFeaturesEntries()
public void setFeaturesEntries(GetInfoResponse.FeaturesEntries entries)
public boolean getRequireHtlcInterceptor()
public void setRequireHtlcInterceptor(boolean value)
public boolean getStoreFinalHtlcResolutions()
public void setStoreFinalHtlcResolutions(boolean value)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.GetInfoResponse>