public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ListBucketAnalyticsConfigurationsResponse listBucketAnalyticsConfigurationsResponse = new ListBucketAnalyticsConfigurationsResponse(); while (context.Read()) { if (context.get_IsStartElement()) { UnmarshallResult(context, listBucketAnalyticsConfigurationsResponse); } } return(listBucketAnalyticsConfigurationsResponse); }
private static void UnmarshallResult(XmlUnmarshallerContext context, ListBucketAnalyticsConfigurationsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ContinuationToken", targetDepth)) { response.ContinuationToken = StringUnmarshaller.Instance.Unmarshall(context); continue; } if (context.TestExpression("AnalyticsConfiguration", targetDepth)) { response.AnalyticsConfigurationList.Add(AnalyticsConfigurationUnmarshaller.Instance.Unmarshall(context)); continue; } if (context.TestExpression("IsTruncated", targetDepth)) { response.IsTruncated = BoolUnmarshaller.Instance.Unmarshall(context); continue; } if (context.TestExpression("NextContinuationToken", targetDepth)) { response.NextContinuationToken = StringUnmarshaller.Instance.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return; } } return; }
private static void UnmarshallResult(XmlUnmarshallerContext context, ListBucketAnalyticsConfigurationsResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("ContinuationToken", num)) { response.ContinuationToken = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("AnalyticsConfiguration", num)) { response.AnalyticsConfigurationList.Add(AnalyticsConfigurationUnmarshaller.Instance.Unmarshall(context)); } else if (context.TestExpression("IsTruncated", num)) { response.IsTruncated = BoolUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("NextContinuationToken", num)) { response.NextContinuationToken = StringUnmarshaller.get_Instance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }