public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { InitiateJobResponse response = new InitiateJobResponse(); context.Read(); UnmarshallResult(context,response); return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { InitiateJobResponse response = new InitiateJobResponse(); context.Read(); response.InitiateJobResult = InitiateJobResultUnmarshaller.GetInstance().Unmarshall(context); return response; }
private static void UnmarshallResult(JsonUnmarshallerContext context,InitiateJobResponse response) { if (context.ResponseData.GetHeaderValue("Location") != null) response.Location = context.ResponseData.GetHeaderValue("Location"); if (context.ResponseData.GetHeaderValue("x-amz-job-id") != null) response.JobId = context.ResponseData.GetHeaderValue("x-amz-job-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) { InitiateJobResponse response = new InitiateJobResponse(); if (context.ResponseData.IsHeaderPresent("x-amz-job-id")) response.JobId = context.ResponseData.GetHeaderValue("x-amz-job-id"); if (context.ResponseData.IsHeaderPresent("Location")) response.Location = context.ResponseData.GetHeaderValue("Location"); return response; }