Class Proposition
- java.lang.Object
-
- com.adobe.marketing.mobile.optimize.Proposition
-
public class Proposition extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static PropositionfromEventData(Map<String,Object> data)Creates aPropositionobject using information provided indatamap.Map<String,Object>generateReferenceXdm()Generates a map containing XDM formatted data forExperience Event - Proposition Referencefield group from thisProposition.StringgetId()Gets thePropositionidentifier.List<Offer>getOffers()Gets thePropositionitems.StringgetScope()Gets thePropositionscope.Map<String,Object>getScopeDetails()Gets thePropositionscope details.inthashCode()
-
-
-
Method Detail
-
getId
public String getId()
Gets thePropositionidentifier.- Returns:
Stringcontaining thePropositionidentifier.
-
getOffers
public List<Offer> getOffers()
Gets thePropositionitems.- Returns:
List<Offer>containing thePropositionitems.
-
getScope
public String getScope()
Gets thePropositionscope.- Returns:
Stringcontaining the encodedPropositionscope.
-
getScopeDetails
public Map<String,Object> getScopeDetails()
Gets thePropositionscope details.- Returns:
Map<String, Object>containing thePropositionscope details.
-
generateReferenceXdm
public Map<String,Object> generateReferenceXdm()
Generates a map containing XDM formatted data forExperience Event - Proposition Referencefield group from thisProposition.The returned XDM data does not contain
eventTypefor the Experience Event.- Returns:
Map<String, Object>containing the XDM data for the proposition reference.
-
fromEventData
public static Proposition fromEventData(Map<String,Object> data)
Creates aPropositionobject using information provided indatamap.This method returns null if the provided
datais empty or null or if it does not contain required info for creating aPropositionobject.- Parameters:
data-Map<String, Object>containing proposition data.- Returns:
Propositionobject or null.
-
-