Class Offer
-
- All Implemented Interfaces:
public class Offer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classOffer.BuilderOfferBuilder.
-
Method Summary
Modifier and Type Method Description StringgetId()Gets the Offeridentifier.StringgetEtag()Gets the Offeretag.doublegetScore()Gets the Offerscore.StringgetSchema()Gets the Offerschema.Map<String, Object>getMeta()Gets the Offermetadata.OfferTypegetType()Gets the Offertype.List<String>getLanguage()Gets the Offerlanguage.StringgetContent()Gets the Offercontent.Map<String, String>getCharacteristics()Gets the Offercharacteristics.OptimizePropositiongetProposition()Gets the containing OptimizePropositionfor thisOffer.voiddisplayed()Dispatches an event for the Edge network extension to send an Experience Event to the Edge network with the display interaction data for the given OptimizePropositionoffer.voidtapped()Dispatches an event for the Edge network extension to send an Experience Event to the Edge network with the tap interaction data for the given OptimizePropositionoffer.Map<String, Object>generateDisplayInteractionXdm()Generates a map containing XDM-formatted data for the Experience Event - OptimizeProposition Displayfield group from thisOfferinstance.Map<String, Object>generateTapInteractionXdm()Generates a map containing XDM-formatted data for the Experience Event - OptimizeProposition Interactfield group from thisOfferinstance.booleanequals(Object o)inthashCode()-
-
Method Detail
-
getMeta
Map<String, Object> getMeta()
Gets the
Offermetadata.- Returns:
Map<String, Object>containing the Offer metadata.
-
getLanguage
List<String> getLanguage()
Gets the
Offerlanguage.- Returns:
List<String>containing the supported Offer language.
-
getContent
String getContent()
Gets the
Offercontent.
-
getCharacteristics
Map<String, String> getCharacteristics()
Gets the
Offercharacteristics.- Returns:
Map<String, String>containing the Offer characteristics.
-
getProposition
OptimizeProposition getProposition()
Gets the containing
OptimizePropositionfor thisOffer.- Returns:
OptimizeProposition instance.
-
displayed
void displayed()
Dispatches an event for the Edge network extension to send an Experience Event to the Edge network with the display interaction data for the given
OptimizePropositionoffer.
-
tapped
void tapped()
Dispatches an event for the Edge network extension to send an Experience Event to the Edge network with the tap interaction data for the given
OptimizePropositionoffer.
-
generateDisplayInteractionXdm
Map<String, Object> generateDisplayInteractionXdm()
Generates a map containing XDM-formatted data for the
Experience Event - OptimizeProposition Displayfield group from thisOfferinstance.This method constructs a new
OptimizePropositionobject using the current offer and its associated proposition reference. If thescopeDetailsof the referenced proposition are empty, theactivityandplacementmaps are also included; otherwise, the simpler constructor is used.The returned XDM map contains the
eventTypedecisioning.propositionDisplay.Note: The Edge sendEvent API can be used to dispatch this data as an Experience Event, along with any additional XDM, free-form data, and override dataset identifier.
- Returns:
Map<String, Object>containing the XDM data for the proposition display interaction.
-
generateTapInteractionXdm
Map<String, Object> generateTapInteractionXdm()
Generates a map containing XDM-formatted data for the
Experience Event - OptimizeProposition Interactfield group from thisOfferinstance.This method constructs a new
OptimizePropositionobject using the current offer and its associated proposition reference. If thescopeDetailsof the referenced proposition are empty, theactivityandplacementmaps are also included; otherwise, the simpler constructor is used.The returned XDM map contains the
eventTypedecisioning.propositionInteract.Note: The Edge sendEvent API can be used to dispatch this data as an Experience Event, along with any additional XDM, free-form data, and override dataset identifier.
- Returns:
Map<String, Object>containing the XDM data for the proposition tap interaction.
-
hashCode
int hashCode()
-
-
-
-