Exemplo n.º 1
0
        public static DescribeAlarmsForMetricResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new DescribeAlarmsForMetricResultUnmarshaller();
            }

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

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


            return(response);
        }