public static SignedSurveyResponseMessage Decode(XdrDataInputStream stream)
        {
            SignedSurveyResponseMessage decodedSignedSurveyResponseMessage = new SignedSurveyResponseMessage();

            decodedSignedSurveyResponseMessage.ResponseSignature = Signature.Decode(stream);
            decodedSignedSurveyResponseMessage.Response          = SurveyResponseMessage.Decode(stream);
            return(decodedSignedSurveyResponseMessage);
        }
 public static void Encode(XdrDataOutputStream stream, SurveyResponseMessage encodedSurveyResponseMessage)
 {
     NodeID.Encode(stream, encodedSurveyResponseMessage.SurveyorPeerID);
     NodeID.Encode(stream, encodedSurveyResponseMessage.SurveyedPeerID);
     Uint32.Encode(stream, encodedSurveyResponseMessage.LedgerNum);
     SurveyMessageCommandType.Encode(stream, encodedSurveyResponseMessage.CommandType);
     EncryptedBody.Encode(stream, encodedSurveyResponseMessage.EncryptedBody);
 }
        public static SurveyResponseMessage Decode(XdrDataInputStream stream)
        {
            SurveyResponseMessage decodedSurveyResponseMessage = new SurveyResponseMessage();

            decodedSurveyResponseMessage.SurveyorPeerID = NodeID.Decode(stream);
            decodedSurveyResponseMessage.SurveyedPeerID = NodeID.Decode(stream);
            decodedSurveyResponseMessage.LedgerNum      = Uint32.Decode(stream);
            decodedSurveyResponseMessage.CommandType    = SurveyMessageCommandType.Decode(stream);
            decodedSurveyResponseMessage.EncryptedBody  = EncryptedBody.Decode(stream);
            return(decodedSurveyResponseMessage);
        }
 public static void Encode(XdrDataOutputStream stream,
                           SignedSurveyResponseMessage encodedSignedSurveyResponseMessage)
 {
     Signature.Encode(stream, encodedSignedSurveyResponseMessage.ResponseSignature);
     SurveyResponseMessage.Encode(stream, encodedSignedSurveyResponseMessage.Response);
 }