Class ViewOfferResponse

java.lang.Object
com.day.cq.analytics.testandtarget.OfferBase
com.day.cq.analytics.testandtarget.ViewOfferResponse

public class ViewOfferResponse extends OfferBase
A response object containing offer data as retrieved from Adobe Target
  • Constructor Details

    • ViewOfferResponse

      public ViewOfferResponse(long offerId, String name, String content)
      Constructs a new ViewOfferResponse
      Parameters:
      offerId - the id of the offer
      name - the name of the offer
      content - the content of the offer
  • Method Details

    • getContent

      public String getContent()
      Description copied from class: OfferBase
      Returns the offer content, as set in Adobe Target
      Overrides:
      getContent in class OfferBase
      Returns:
      the offer content. This is usually a callback to an AEM function which pulls the content from the repository
    • getName

      public String getName()
      Description copied from class: OfferBase
      Returns the name of the offer
      Overrides:
      getName in class OfferBase
      Returns:
      a String object containing the offer name