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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSurveyResponseMessage(NodeID surveyorPeerID, NodeID surveyedPeerID, Uint32 ledgerNum, SurveyMessageCommandType commandType, EncryptedBody encryptedBody) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SurveyResponseMessagedecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SurveyResponseMessagefromXdrBase64(String xdr) static SurveyResponseMessagefromXdrByteArray(byte[] xdr) inthashCode()voidsetCommandType(SurveyMessageCommandType commandType) voidsetEncryptedBody(EncryptedBody encryptedBody) voidsetLedgerNum(Uint32 ledgerNum) voidsetSurveyedPeerID(NodeID surveyedPeerID) voidsetSurveyorPeerID(NodeID surveyorPeerID) toString()default Stringdefault 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
-