public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeReservedInstancesOfferingsResponse response = new DescribeReservedInstancesOfferingsResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("reservedInstancesOfferingsSet/item", targetDepth))
                    {
                        response.ReservedInstancesOfferings.Add(ReservedInstancesOfferingUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                    if (context.TestExpression("nextToken", targetDepth))
                    {
                        response.NextToken = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
コード例 #2
0
        public static ReservedInstancesOfferingUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new ReservedInstancesOfferingUnmarshaller();
            }

            return(instance);
        }