Exemple #1
0
 public static PurchaseReservedNodeOfferingResultUnmarshaller GetInstance()
 {
     if (instance == null)
     {
         instance = new PurchaseReservedNodeOfferingResultUnmarshaller();
     }
     return(instance);
 }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            PurchaseReservedNodeOfferingResponse response = new PurchaseReservedNodeOfferingResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("PurchaseReservedNodeOfferingResult", 2))
                    {
                        response.PurchaseReservedNodeOfferingResult = PurchaseReservedNodeOfferingResultUnmarshaller.GetInstance().Unmarshall(context);
                        continue;
                    }

                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context);
                    }
                }
            }


            return(response);
        }