public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { CreateCustomerGatewayResponse response = new CreateCustomerGatewayResponse(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth = 2; } while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("customerGateway", targetDepth)) { var unmarshaller = CustomerGatewayUnmarshaller.Instance; response.CustomerGateway = unmarshaller.Unmarshall(context); continue; } } } return(response); }
public static CreateCustomerGatewayResponse Unmarshall(UnmarshallerContext context) { CreateCustomerGatewayResponse createCustomerGatewayResponse = new CreateCustomerGatewayResponse(); createCustomerGatewayResponse.HttpResponse = context.HttpResponse; createCustomerGatewayResponse.RequestId = context.StringValue("CreateCustomerGateway.RequestId"); createCustomerGatewayResponse.CustomerGatewayId = context.StringValue("CreateCustomerGateway.CustomerGatewayId"); createCustomerGatewayResponse.IpAddress = context.StringValue("CreateCustomerGateway.IpAddress"); createCustomerGatewayResponse.Name = context.StringValue("CreateCustomerGateway.Name"); createCustomerGatewayResponse.Description = context.StringValue("CreateCustomerGateway.Description"); createCustomerGatewayResponse.CreateTime = context.LongValue("CreateCustomerGateway.CreateTime"); return(createCustomerGatewayResponse); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { CreateCustomerGatewayResponse response = new CreateCustomerGatewayResponse(); int targetDepth = 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("customerGateway", targetDepth)) { response.CustomerGateway = CustomerGatewayUnmarshaller.GetInstance().Unmarshall(context); continue; } } } return(response); }