Example #1
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeTagsResponse response = new DescribeTagsResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("tagSet/item", targetDepth))
                    {
                        response.Tags.Add(TagDescriptionUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                    if (context.TestExpression("nextToken", targetDepth))
                    {
                        response.NextToken = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
        public static TagDescriptionUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new TagDescriptionUnmarshaller();
            }

            return(instance);
        }