public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UploadArchiveResponse response = new UploadArchiveResponse(); context.Read(); UnmarshallResult(context,response); return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UploadArchiveResponse response = new UploadArchiveResponse(); context.Read(); response.UploadArchiveResult = UploadArchiveResultUnmarshaller.GetInstance().Unmarshall(context); return response; }
private static void UnmarshallResult(JsonUnmarshallerContext context,UploadArchiveResponse 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; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UploadArchiveResponse response = new UploadArchiveResponse(); 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 response; }