-
public final class EventAdapterRepresents an event and its associated properties.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringeventNameprivate final Map<String, Object>eventPropertiesprivate final List<Map<String, Object>>itemsprivate final LocationuserLocationprivate final StringprofileAttrName
-
Method Summary
Modifier and Type Method Description final StringgetEventName()final Map<String, Object>getEventProperties()final List<Map<String, Object>>getItems()final LocationgetUserLocation()final StringgetProfileAttrName()final TriggerValuegetPropertyValue(String propertyName)Gets the property value for the specified property name. final List<TriggerValue>getItemValue(String propertyName)Gets the item value for the specified property name from the list of items. final BooleanisChargedEvent()Checks if the event is a charged event. final BooleanisUserAttributeChangeEvent()Checks if the event is a user-attribute-change-event. -
-
Method Detail
-
getEventName
final String getEventName()
-
getEventProperties
final Map<String, Object> getEventProperties()
-
getUserLocation
final Location getUserLocation()
-
getProfileAttrName
final String getProfileAttrName()
-
getPropertyValue
final TriggerValue getPropertyValue(String propertyName)
Gets the property value for the specified property name. Note: Compares after normalising (removing all whitespaces)
- Parameters:
propertyName- The name of the property to retrieve.
-
getItemValue
final List<TriggerValue> getItemValue(String propertyName)
Gets the item value for the specified property name from the list of items. Note: Compares after normalising (removing all whitespaces)
- Parameters:
propertyName- The name of the property to retrieve from the items.
-
isChargedEvent
final Boolean isChargedEvent()
Checks if the event is a charged event.
-
isUserAttributeChangeEvent
final Boolean isUserAttributeChangeEvent()
Checks if the event is a user-attribute-change-event.
-
-
-
-