public static DescribeCacheClustersResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new DescribeCacheClustersResultUnmarshaller();
            }

            return(instance);
        }
Ejemplo n.º 2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeCacheClustersResponse response = new DescribeCacheClustersResponse();

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


            return(response);
        }