public static DescribeEventsResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new DescribeEventsResultUnmarshaller();
            }

            return(instance);
        }
示例#2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeEventsResponse response = new DescribeEventsResponse();

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


            return(response);
        }