getAllOfferLists
getAllOfferLists()
The getAllOfferLists method returns an array of all OfferLists of a Response object.
This is used by the getOffersForMultipleInteractionPoints method that populates the OfferList array object of a Response object.
Return value
The Response object returns an OfferList array.
Example
The following example is an excerpt from a method which processes the response object for getOffers.
OfferList[] allOfferLists = response.getAllOfferLists();
if (allOfferLists != null) {
for (OfferList ol : allOfferLists) {
System.out.println("The following offers are delivered for interaction point "
+ ol.getInteractionPointName() + ":");
for (Offer o : ol.getRecommendedOffers()) {
System.out.println(o.getOfferName());
}
}
}