Package com.swrve.sdk
Class SwrveEventsManagerImp
- java.lang.Object
-
- com.swrve.sdk.SwrveEventsManagerImp
-
public class SwrveEventsManagerImp extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
PREF_EVENT_SEND_RESPONSE_LOG
protected static boolean
shouldSendResponseLogs
-
Constructor Summary
Constructors Modifier Constructor Description protected
SwrveEventsManagerImp(android.content.Context context, SwrveConfigBase config, com.swrve.sdk.rest.IRESTClient restClient, java.lang.String userId, java.lang.String appVersion, java.lang.String sessionToken, java.lang.String deviceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getNextSequenceNumber()
protected long
getTime()
protected void
logResponse(com.swrve.sdk.rest.RESTResponse response, int eventsCount)
protected void
sendResponseLogs(LocalStorage localStorage)
int
sendStoredEvents(SwrveMultiLayerLocalStorage multiLayerLocalStorage)
int
storeAndSendEvents(java.util.List<java.lang.String> eventsJson, LocalStorage localStorage)
-
-
-
Field Detail
-
PREF_EVENT_SEND_RESPONSE_LOG
protected static final java.lang.String PREF_EVENT_SEND_RESPONSE_LOG
- See Also:
- Constant Field Values
-
shouldSendResponseLogs
protected static boolean shouldSendResponseLogs
-
-
Constructor Detail
-
SwrveEventsManagerImp
protected SwrveEventsManagerImp(android.content.Context context, SwrveConfigBase config, com.swrve.sdk.rest.IRESTClient restClient, java.lang.String userId, java.lang.String appVersion, java.lang.String sessionToken, java.lang.String deviceId)
-
-
Method Detail
-
storeAndSendEvents
public int storeAndSendEvents(java.util.List<java.lang.String> eventsJson, LocalStorage localStorage) throws java.lang.Exception
- Throws:
java.lang.Exception
-
sendStoredEvents
public int sendStoredEvents(SwrveMultiLayerLocalStorage multiLayerLocalStorage)
-
logResponse
protected void logResponse(com.swrve.sdk.rest.RESTResponse response, int eventsCount)
-
sendResponseLogs
protected void sendResponseLogs(LocalStorage localStorage)
-
getNextSequenceNumber
protected int getNextSequenceNumber()
-
getTime
protected long getTime()
-
-