setNumberRequested

The setNumberRequested method defines the number of offers requested by the getOffers command.

setNumberRequested(numberRequested)
  • numberRequested-an integer defining the number of offers requested by the getOffers command.

Return value

None.

Example

The following example is an excerpt from an executeBatch method calling getOffers.

String interactionPoint = "Overview Page Banner 1";
int numberRequested=1;
	        
Command getOffersCommand = new CommandImpl();
getOffersCommand.setMethodIdentifier(Command.COMMAND_GETOFFERS);
getOffersCommand.setInteractionPoint(interactionPoint);
getOffersCommand.setNumberRequested(numberRequested);