Пример #1
0
        public static GetMetricStatisticsResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new GetMetricStatisticsResultUnmarshaller();
            }

            return(instance);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            GetMetricStatisticsResponse response = new GetMetricStatisticsResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("GetMetricStatisticsResult", 2))
                    {
                        response.GetMetricStatisticsResult = GetMetricStatisticsResultUnmarshaller.GetInstance().Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context);
                    }
                }
            }


            return(response);
        }