About the Command interface

The executeBatch method requires you to pass in an array of objects that implements the Command interface. You should use the default implementation, CommandImpl to pass in the Command objects.

The following table lists the command, the method of the InteractAPI class the command represents, and the Command interface methods you must use for each command. You do not need to include a session ID because the executeBatch method already includes the session ID.

Command Interact API Method Command Interface Methods
COMMAND_ENDSESSION endSession None.

COMMAND_GETOFFERS

getOffers

  • setInteractionPoint
  • setNumberRequested
COMMAND_GETPROFILE getProfile None.
COMMAND_GETVERSION getVersion None.

COMMAND_POSTEVENT

postEvent

  • setEvent
  • setEventParameters

COMMAND_SETAUDIENCE

setAudience

  • setAudienceID
  • setAudienceLevel
  • setEventParameters
COMMAND_SETDEBUG setDebug setDebug

COMMAND_STARTSESSION

startSession

  • setAudienceID
  • setAudienceLevel
  • setDebug
  • setEventParameters
  • setInteractiveChannel
  • setRelyOnExistingSession