Пример #1
0
        public static StopExecutionResponse Unmarshall(UnmarshallerContext context)
        {
            StopExecutionResponse stopExecutionResponse = new StopExecutionResponse();

            stopExecutionResponse.HttpResponse   = context.HttpResponse;
            stopExecutionResponse.RequestId      = context.StringValue("StopExecution.RequestId");
            stopExecutionResponse.Name           = context.StringValue("StopExecution.Name");
            stopExecutionResponse.FlowName       = context.StringValue("StopExecution.FlowName");
            stopExecutionResponse.FlowDefinition = context.StringValue("StopExecution.FlowDefinition");
            stopExecutionResponse.Input          = context.StringValue("StopExecution.Input");
            stopExecutionResponse.Output         = context.StringValue("StopExecution.Output");
            stopExecutionResponse.Status         = context.StringValue("StopExecution.Status");
            stopExecutionResponse.StartedTime    = context.StringValue("StopExecution.StartedTime");
            stopExecutionResponse.StoppedTime    = context.StringValue("StopExecution.StoppedTime");

            return(stopExecutionResponse);
        }
Пример #2
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)
        {
            StopExecutionResponse response = new StopExecutionResponse();

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

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("stopDate", targetDepth))
                {
                    var unmarshaller = DateTimeUnmarshaller.Instance;
                    response.StopDate = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return(response);
        }
        public static StopExecutionResponse Unmarshall(UnmarshallerContext _ctx)
        {
            StopExecutionResponse stopExecutionResponse = new StopExecutionResponse();

            stopExecutionResponse.HttpResponse      = _ctx.HttpResponse;
            stopExecutionResponse.RequestId         = _ctx.StringValue("StopExecution.RequestId");
            stopExecutionResponse.Name              = _ctx.StringValue("StopExecution.Name");
            stopExecutionResponse.FlowName          = _ctx.StringValue("StopExecution.FlowName");
            stopExecutionResponse.FlowDefinition    = _ctx.StringValue("StopExecution.FlowDefinition");
            stopExecutionResponse.Input             = _ctx.StringValue("StopExecution.Input");
            stopExecutionResponse.Output            = _ctx.StringValue("StopExecution.Output");
            stopExecutionResponse.Status            = _ctx.StringValue("StopExecution.Status");
            stopExecutionResponse.StartedTime       = _ctx.StringValue("StopExecution.StartedTime");
            stopExecutionResponse.StoppedTime       = _ctx.StringValue("StopExecution.StoppedTime");
            stopExecutionResponse.ExternalInputUri  = _ctx.StringValue("StopExecution.ExternalInputUri");
            stopExecutionResponse.ExternalOutputUri = _ctx.StringValue("StopExecution.ExternalOutputUri");

            return(stopExecutionResponse);
        }