Пример #1
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            StartImagePipelineExecutionResponse response = new StartImagePipelineExecutionResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("clientToken", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.ClientToken = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("imageBuildVersionArn", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.ImageBuildVersionArn = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("requestId", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.RequestId = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return(response);
        }
        public static StartImagePipelineExecutionResponse Unmarshall(UnmarshallerContext _ctx)
        {
            StartImagePipelineExecutionResponse startImagePipelineExecutionResponse = new StartImagePipelineExecutionResponse();

            startImagePipelineExecutionResponse.HttpResponse = _ctx.HttpResponse;
            startImagePipelineExecutionResponse.RequestId    = _ctx.StringValue("StartImagePipelineExecution.RequestId");
            startImagePipelineExecutionResponse.ExecutionId  = _ctx.StringValue("StartImagePipelineExecution.ExecutionId");

            return(startImagePipelineExecutionResponse);
        }