Package org.stellar.sdk.xdr
Class SurveyResponseMessage
java.lang.Object
org.stellar.sdk.xdr.SurveyResponseMessage
SurveyResponseMessage's original definition in the XDR file is:
struct SurveyResponseMessage { NodeID surveyorPeerID; NodeID surveyedPeerID; uint32 ledgerNum; SurveyMessageCommandType commandType; EncryptedBody encryptedBody; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSurveyResponseMessage
(NodeID surveyorPeerID, NodeID surveyedPeerID, Uint32 ledgerNum, SurveyMessageCommandType commandType, EncryptedBody encryptedBody) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static SurveyResponseMessage
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SurveyResponseMessage
fromXdrBase64
(String xdr) static SurveyResponseMessage
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setCommandType
(SurveyMessageCommandType commandType) void
setEncryptedBody
(EncryptedBody encryptedBody) void
setLedgerNum
(Uint32 ledgerNum) void
setSurveyedPeerID
(NodeID surveyedPeerID) void
setSurveyorPeerID
(NodeID surveyorPeerID) toString()
default String
default byte[]
-
Constructor Details
-
SurveyResponseMessage
public SurveyResponseMessage() -
SurveyResponseMessage
public SurveyResponseMessage(NodeID surveyorPeerID, NodeID surveyedPeerID, Uint32 ledgerNum, SurveyMessageCommandType commandType, EncryptedBody encryptedBody)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getSurveyorPeerID
-
getSurveyedPeerID
-
getLedgerNum
-
getCommandType
-
getEncryptedBody
-
setSurveyorPeerID
-
setSurveyedPeerID
-
setLedgerNum
-
setCommandType
-
setEncryptedBody
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-