Class ViewOfferResponse


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

      • ViewOfferResponse

        public ViewOfferResponse​(long offerId,
                                 java.lang.String name,
                                 java.lang.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 Detail

      • getContent

        public java.lang.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 java.lang.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