public static AccountAttributeUnmarshaller GetInstance() { if (instance == null) { instance = new AccountAttributeUnmarshaller(); } return(instance); }
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); }