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