GetBucketAnalyticsConfigurationResponse Response
Inheritance: Amazon.Runtime.AmazonWebServiceResponse
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            GetBucketAnalyticsConfigurationResponse response = new GetBucketAnalyticsConfigurationResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    UnmarshallResult(context, response);
                    continue;
                }
            }


            return response;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketAnalyticsConfigurationResponse response)
        {

            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;

            if (context.IsStartOfDocument)
                targetDepth += 2;

            response.AnalyticsConfiguration = new AnalyticsConfiguration();

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Id", targetDepth))
                    {
                        response.AnalyticsConfiguration.AnalyticsId = StringUnmarshaller.Instance.Unmarshall(context);

                        continue;
                    }
                    if (context.TestExpression("Filter", targetDepth))
                    {
                        response.AnalyticsConfiguration.AnalyticsFilter = new AnalyticsFilter()
                        {
                            AnalyticsFilterPredicate = (AnalyticsPredicateListUnmarshaller.Instance.Unmarshall(context))[0]
                        };   
                        continue;
                    }
                    if (context.TestExpression("StorageClassAnalysis", targetDepth))
                    {
                        response.AnalyticsConfiguration.StorageClassAnalysis = StorageClassAnalysisUnmarshaller.Instance.Unmarshall(context);

                        continue;
                    }

                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }

            return;
        }