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

            return(instance);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ListStacksResponse response = new ListStacksResponse();

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


            return(response);
        }