public class Channel extends Message<LightningApi.Channel>
Message
,
LightningApi.Channel
builder, wrapperFactory
Constructor and Description |
---|
Channel()
Empty Constructor
|
Channel(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
Channel(LightningApi.Channel apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
boolean |
getActive()
Getter for active.
|
long |
getCapacity()
Getter for capacity.
|
long |
getChanId()
Getter for chan_id.
|
java.lang.String |
getChannelPoint()
Getter for channel_point.
|
java.lang.String |
getChanStatusFlags()
Getter for chan_status_flags.
|
long |
getCommitFee()
Getter for commit_fee.
|
long |
getCommitWeight()
Getter for commit_weight.
|
int |
getCsvDelay()
Getter for csv_delay.
|
long |
getFeePerKw()
Getter for fee_per_kw.
|
boolean |
getInitiator()
Getter for initiator.
|
long |
getLocalBalance()
Getter for local_balance.
|
long |
getLocalChanReserveSat()
Getter for local_chan_reserve_sat.
|
long |
getNumUpdates()
Getter for num_updates.
|
java.util.List<HTLC> |
getPendingHtlcs()
Getter for a list of pending_htlcs.
|
boolean |
getPrivate()
Getter for private.
|
long |
getRemoteBalance()
Getter for remote_balance.
|
long |
getRemoteChanReserveSat()
Getter for remote_chan_reserve_sat.
|
java.lang.String |
getRemotePubkey()
Getter for remote_pubkey.
|
boolean |
getStaticRemoteKey()
Getter for static_remote_key.
|
long |
getTotalSatoshisReceived()
Getter for total_satoshis_received.
|
long |
getTotalSatoshisSent()
Getter for total_satoshis_sent.
|
long |
getUnsettledBalance()
Getter for unsettled_balance.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setActive(boolean value)
Setter for active.
|
void |
setCapacity(long value)
Setter for capacity.
|
void |
setChanId(long value)
Setter for chan_id.
|
void |
setChannelPoint(java.lang.String value)
Setter for channel_point.
|
void |
setChanStatusFlags(java.lang.String value)
Setter for chan_status_flags.
|
void |
setCommitFee(long value)
Setter for commit_fee.
|
void |
setCommitWeight(long value)
Setter for commit_weight.
|
void |
setCsvDelay(int value)
Setter for csv_delay.
|
void |
setFeePerKw(long value)
Setter for fee_per_kw.
|
void |
setInitiator(boolean value)
Setter for initiator.
|
void |
setLocalBalance(long value)
Setter for local_balance.
|
void |
setLocalChanReserveSat(long value)
Setter for local_chan_reserve_sat.
|
void |
setNumUpdates(long value)
Setter for num_updates.
|
void |
setPendingHtlcs(java.util.List<HTLC> valueList)
Setter for list of pending_htlcs.
|
void |
setPrivate(boolean value)
Setter for private.
|
void |
setRemoteBalance(long value)
Setter for remote_balance.
|
void |
setRemoteChanReserveSat(long value)
Setter for remote_chan_reserve_sat.
|
void |
setRemotePubkey(java.lang.String value)
Setter for remote_pubkey.
|
void |
setStaticRemoteKey(boolean value)
Setter for static_remote_key.
|
void |
setTotalSatoshisReceived(long value)
Setter for total_satoshis_received.
|
void |
setTotalSatoshisSent(long value)
Setter for total_satoshis_sent.
|
void |
setUnsettledBalance(long value)
Setter for unsettled_balance.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
public Channel()
public Channel(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public Channel(LightningApi.Channel apiObject)
public boolean getActive()
public void setActive(boolean value)
public java.lang.String getRemotePubkey()
public void setRemotePubkey(java.lang.String value)
public java.lang.String getChannelPoint()
public void setChannelPoint(java.lang.String value)
public long getChanId()
public void setChanId(long value)
public long getCapacity()
public void setCapacity(long value)
public long getLocalBalance()
public void setLocalBalance(long value)
public long getRemoteBalance()
public void setRemoteBalance(long value)
public long getCommitFee()
public void setCommitFee(long value)
public long getCommitWeight()
public void setCommitWeight(long value)
public long getFeePerKw()
public void setFeePerKw(long value)
public long getUnsettledBalance()
public void setUnsettledBalance(long value)
public long getTotalSatoshisSent()
public void setTotalSatoshisSent(long value)
public long getTotalSatoshisReceived()
public void setTotalSatoshisReceived(long value)
public long getNumUpdates()
public void setNumUpdates(long value)
public java.util.List<HTLC> getPendingHtlcs() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setPendingHtlcs(java.util.List<HTLC> valueList)
public int getCsvDelay()
public void setCsvDelay(int value)
public boolean getPrivate()
public void setPrivate(boolean value)
public boolean getInitiator()
public void setInitiator(boolean value)
public java.lang.String getChanStatusFlags()
public void setChanStatusFlags(java.lang.String value)
public long getLocalChanReserveSat()
public void setLocalChanReserveSat(long value)
public long getRemoteChanReserveSat()
public void setRemoteChanReserveSat(long value)
public boolean getStaticRemoteKey()
public void setStaticRemoteKey(boolean value)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.Channel>