Class Offer
- java.lang.Object
-
- com.adobe.marketing.mobile.optimize.Offer
-
public class Offer extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOffer.BuilderOfferBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 givenPropositionoffer.booleanequals(Object o)Map<String,Object>generateDisplayInteractionXdm()Generates a map containing XDM formatted data forExperience Event - Proposition Interactionsfield group from thisPropositionitem.Map<String,Object>generateTapInteractionXdm()Generates a map containing XDM formatted data forExperience Event - Proposition Interactionsfield group from thisPropositionoffer.Map<String,String>getCharacteristics()Gets theOffercharacteristics.StringgetContent()Gets theOffercontent.StringgetEtag()Gets theOfferetag.StringgetId()Gets theOfferidentifier.List<String>getLanguage()Gets theOfferlanguage.Map<String,Object>getMeta()Gets theOffermetadata.PropositiongetProposition()Gets the containingPropositionfor thisOffer.StringgetSchema()Gets theOfferschema.intgetScore()Gets theOfferscore.OfferTypegetType()Gets theOffertype.inthashCode()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 givenPropositionoffer.
-
-
-
Method Detail
-
getId
public String getId()
Gets theOfferidentifier.
-
getScore
public int getScore()
Gets theOfferscore.- Returns:
intcontaining theOfferscore.
-
getSchema
public String getSchema()
Gets theOfferschema.
-
getMeta
public Map<String,Object> getMeta()
Gets theOffermetadata.- Returns:
Map<String, Object>containing theOffermetadata.
-
getType
public OfferType getType()
Gets theOffertype.
-
getLanguage
public List<String> getLanguage()
Gets theOfferlanguage.- Returns:
List<String>containing the supportedOfferlanguage.
-
getContent
public String getContent()
Gets theOffercontent.
-
getCharacteristics
public Map<String,String> getCharacteristics()
Gets theOffercharacteristics.- Returns:
Map<String, String>containing theOffercharacteristics.
-
getProposition
public Proposition getProposition()
Gets the containingPropositionfor thisOffer.- Returns:
Propositioninstance.
-
displayed
public 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 givenPropositionoffer.- See Also:
trackWithData(Map)
-
tapped
public 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 givenPropositionoffer.- See Also:
trackWithData(Map)
-
generateDisplayInteractionXdm
public Map<String,Object> generateDisplayInteractionXdm()
Generates a map containing XDM formatted data forExperience Event - Proposition Interactionsfield group from thisPropositionitem.The returned XDM data does contain the
eventTypefor the Experience Event with valuedecisioning.propositionDisplay.Note: The Edge sendEvent API can be used to dispatch this data in 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 interaction.- See Also:
generateInteractionXdm(String)
-
generateTapInteractionXdm
public Map<String,Object> generateTapInteractionXdm()
Generates a map containing XDM formatted data forExperience Event - Proposition Interactionsfield group from thisPropositionoffer.The returned XDM data contains the
eventTypefor the Experience Event with valuedecisioning.propositionInteract.Note: The Edge sendEvent API can be used to dispatch this data in 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 interaction.- See Also:
generateInteractionXdm(String)
-
-