getOfferList
getOfferList()
The
getOfferList
method returns the OfferList object of a Response object.
The
getOffers
method populates the OfferList object of a Response object.
Return value
The Response object returns an OfferList object.
Example
The following example is an excerpt from a method which processes the response object for
getOffers
.
OfferList offerList=response.getOfferList();
if(offerList.getRecommendedOffers() != null)
{
for(Offer offer : offerList.getRecommendedOffers())
{
// print offer
System.out.println("Offer Name:"+offer.getOfferName());
}
}
Copyright IBM Corporation 2013. All Rights Reserved.