Class ViewOfferResponse
java.lang.Object
com.day.cq.analytics.testandtarget.OfferBase
com.day.cq.analytics.testandtarget.ViewOfferResponse
A response object containing offer data as retrieved from Adobe Target
-
Constructor Summary
ConstructorsConstructorDescriptionViewOfferResponse(long offerId, String name, String content) Constructs a new ViewOfferResponse -
Method Summary
Modifier and TypeMethodDescriptionReturns the offer content, as set in Adobe TargetgetName()Returns the name of the offerMethods inherited from class com.day.cq.analytics.testandtarget.OfferBase
getContentPath, getId, getMacMetadata, getType, getWorkspace, setMacMetadata, setType, setWorkspace
-
Constructor Details
-
ViewOfferResponse
Constructs a new ViewOfferResponse- Parameters:
offerId- the id of the offername- the name of the offercontent- the content of the offer
-
-
Method Details
-
getContent
Description copied from class:OfferBaseReturns the offer content, as set in Adobe Target- Overrides:
getContentin classOfferBase- Returns:
- the offer content. This is usually a callback to an AEM function which pulls the content from the repository
-
getName
Description copied from class:OfferBaseReturns the name of the offer
-