Exemple #1
0
        public static ImageAttributeUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new ImageAttributeUnmarshaller();
            }

            return(instance);
        }
Exemple #2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeImageAttributeResponse response = new DescribeImageAttributeResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression(".", targetDepth))
                    {
                        response.ImageAttribute = ImageAttributeUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }