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

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

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("accountAttributeSet/item", targetDepth))
                    {
                        response.AccountAttributes.Add(AccountAttributeUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }