public class HeartbeatResponse extends Object implements IAbstractAcknowledgement
Constructor and Description |
---|
HeartbeatResponse() |
Modifier and Type | Method and Description |
---|---|
String |
getClockchain()
Gets the public key of the clockchain.
|
String |
getError()
Gets the error, if an error occurred.
|
String |
getLatestTick()
Gets the hash of the last tick block.
|
String |
getMerchantPublicKey()
Gets the public key for the merchant's blockchain.
|
String |
getResponseDescription()
Gets a narrative description of the transaction result.
|
Date |
getTimestamp()
Gets the timestamp of the heartbeat.
|
boolean |
isSuccess()
Gets whether or not the request succeeded.
|
void |
setClockchain(String value)
Sets the public key of the clockchain.
|
void |
setError(String value)
Sets the error, if an error occurred.
|
void |
setLatestTick(String value)
Sets the hash of the last tick block.
|
void |
setMerchantPublicKey(String value)
Sets the public key for the merchant's blockchain.
|
void |
setResponseDescription(String value)
Sets a narrative description of the transaction result.
|
void |
setSuccess(boolean value)
Sets whether or not the request succeeded.
|
void |
setTimestamp(Date value)
Sets the timestamp of the heartbeat.
|
public void setSuccess(boolean value)
value
- whether or not the request succeeded.public boolean isSuccess()
isSuccess
in interface IAbstractAcknowledgement
public void setError(String value)
value
- the error, if an error occurred.public String getError()
getError
in interface IAbstractAcknowledgement
public void setResponseDescription(String value)
value
- a narrative description of the transaction result.public String getResponseDescription()
getResponseDescription
in interface IAbstractAcknowledgement
public void setTimestamp(Date value)
value
- the timestamp of the heartbeat.public Date getTimestamp()
public void setClockchain(String value)
value
- the public key of the clockchain. This is blockchain stuff that you
don't really need to worry about. It is a base 58 encoded and compressed eliptic
curve public key. For the production clockchain, this will always be:
'3cuhsckVUd9HzMjbdUSW17aY5kCcm1d6YAphJMUwmtXRj7WLyU'.public String getClockchain()
public void setLatestTick(String value)
value
- the hash of the last tick block.public String getLatestTick()
public void setMerchantPublicKey(String value)
value
- the public key for the merchant's blockchain.public String getMerchantPublicKey()
Copyright © 2022 BlockChyp, Inc.. All rights reserved.