-
public class EventMediator
-
-
Constructor Summary
Constructors Constructor Description EventMediator(CleverTapInstanceConfig config, CoreMetaData coreMetaData, LocalDataStore localDataStore, ProfileValueHandler profileValueHandler, NetworkRepo networkRepo)
-
Method Summary
Modifier and Type Method Description booleanshouldDeferProcessingEvent(JSONObject event, int eventType)booleanshouldDropEvent(JSONObject event, int eventType)booleanisAppLaunchedEvent(JSONObject event)booleanisEvent(JSONObject event)StringgetEventName(JSONObject event)Map<String, Object>getEventProperties(JSONObject event)booleanisChargedEvent(JSONObject event)List<Map<String, Object>>getChargedEventItemDetails(JSONObject event)Map<String, Object>getChargedEventDetails(JSONObject event)Map<String, Map<String, Object>>computeUserAttributeChangeProperties(JSONObject event)This function computes the newValue and the oldValue for each user attribute of the eventIt also updates the user properties in the local cache and db -
-
Constructor Detail
-
EventMediator
EventMediator(CleverTapInstanceConfig config, CoreMetaData coreMetaData, LocalDataStore localDataStore, ProfileValueHandler profileValueHandler, NetworkRepo networkRepo)
-
-
Method Detail
-
shouldDeferProcessingEvent
boolean shouldDeferProcessingEvent(JSONObject event, int eventType)
-
shouldDropEvent
boolean shouldDropEvent(JSONObject event, int eventType)
-
isAppLaunchedEvent
boolean isAppLaunchedEvent(JSONObject event)
-
isEvent
boolean isEvent(JSONObject event)
-
getEventName
String getEventName(JSONObject event)
-
getEventProperties
Map<String, Object> getEventProperties(JSONObject event)
-
isChargedEvent
boolean isChargedEvent(JSONObject event)
-
getChargedEventItemDetails
List<Map<String, Object>> getChargedEventItemDetails(JSONObject event)
-
getChargedEventDetails
Map<String, Object> getChargedEventDetails(JSONObject event)
-
computeUserAttributeChangeProperties
Map<String, Map<String, Object>> computeUserAttributeChangeProperties(JSONObject event)
This function computes the newValue and the oldValue for each user attribute of the eventIt also updates the user properties in the local cache and db
- Parameters:
event- - profile event
-
-
-
-