Amazon.Glacier.Model.Internal.MarshallTransformations.InitiateJobResponseUnmarshaller.Unmarshall C# (CSharp) Method

Unmarshall() public method

Unmarshaller the response from the service to the response class.
public Unmarshall ( JsonUnmarshallerContext context ) : AmazonWebServiceResponse
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
return Amazon.Runtime.AmazonWebServiceResponse
        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;
        }