Returns information about the CompleteMultipartUploadResult response and response metadata.
상속: Amazon.Runtime.AmazonWebServiceResponse
 public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
 {
   CompleteMultipartUploadResponse response = new CompleteMultipartUploadResponse();          
   
   context.Read();
   
   UnmarshallResult(context,response);
   return response;
 }
예제 #2
0
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            CompleteMultipartUploadResponse response = new CompleteMultipartUploadResponse();

              context.Read();

              response.CompleteMultipartUploadResult = CompleteMultipartUploadResultUnmarshaller.GetInstance().Unmarshall(context);

              return response;
        }
        private static void UnmarshallResult(JsonUnmarshallerContext context,CompleteMultipartUploadResponse response)
        {
          

            if (context.ResponseData.GetHeaderValue("Location") != null)
                response.Location = context.ResponseData.GetHeaderValue("Location");
            if (context.ResponseData.GetHeaderValue("x-amz-sha256-tree-hash") != null)
                response.Checksum = context.ResponseData.GetHeaderValue("x-amz-sha256-tree-hash");
            if (context.ResponseData.GetHeaderValue("x-amz-archive-id") != null)
                response.ArchiveId = context.ResponseData.GetHeaderValue("x-amz-archive-id");           
            return;
        }                        
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            CompleteMultipartUploadResponse response = new CompleteMultipartUploadResponse();

            if (context.ResponseData.IsHeaderPresent("x-amz-archive-id"))
                response.ArchiveId = context.ResponseData.GetHeaderValue("x-amz-archive-id");
            if (context.ResponseData.IsHeaderPresent("x-amz-sha256-tree-hash"))
                response.Checksum = context.ResponseData.GetHeaderValue("x-amz-sha256-tree-hash");
            if (context.ResponseData.IsHeaderPresent("Location"))
                response.Location = context.ResponseData.GetHeaderValue("Location");

            return response;
        }