/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeConfigurationRevisionResponse response = new DescribeConfigurationRevisionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("configurationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConfigurationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("data", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Data = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } } return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeConfigurationRevisionResponse response = new DescribeConfigurationRevisionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("revision", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.Revision = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("serverProperties", targetDepth)) { var unmarshaller = MemoryStreamUnmarshaller.Instance; response.ServerProperties = unmarshaller.Unmarshall(context); continue; } } return(response); }