-
- All Implemented Interfaces:
-
kotlin.collections.Map,kotlin.collections.MutableMap
public abstract class BasePayload extends ValueMap
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBasePayload.Typepublic classBasePayload.Companionpublic abstract classBasePayload.Builder
-
Constructor Summary
Constructors Constructor Description BasePayload(BasePayload.Type type, String messageId, Date timestamp, Map<String, Object> context, Map<String, Object> integrations, String userId, String anonymousId, Boolean nanosecondTimestamps)BasePayload()
-
Method Summary
Modifier and Type Method Description Set<Entry.Map<String, Object>>getEntries()Set<String>getKeys()IntegergetSize()Collection<Object>getValues()BasePayload.Typetype()The type of message. StringuserId()The user ID is an identifier that unique identifies the user in your database. StringanonymousId()The anonymous ID is an identifier that uniquely (or close enough) identifies the user, but isn't from your database. StringmessageId()A randomly generated unique id for this message. Datetimestamp()Set a timestamp the event occurred. ValueMapintegrations()A dictionary of integration names that the message should be proxied to. BasePayloadputValue(String key, Object value)abstract BasePayload.Builder<?, ?>toBuilder()-
Methods inherited from class ai.seinetime.sdk.analytics.integrations.BasePayload
clear, containsKey, containsValue, equals, get, getBoolean, getChar, getDouble, getEnum, getInt, getList, getLong, getString, getValueMap, getValueMap, hashCode, isEmpty, put, putAll, remove, toJsonObject, toString, toStringMap -
Methods inherited from class ai.seinetime.sdk.internal.ValueMap
compute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove, replace, replace, replaceAll -
Methods inherited from class kotlin.collections.MutableMap
forEach, getOrDefault -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getEntries
Set<Entry.Map<String, Object>> getEntries()
-
getValues
Collection<Object> getValues()
-
type
BasePayload.Type type()
The type of message.
-
userId
String userId()
The user ID is an identifier that unique identifies the user in your database. Ideally it should not be an email address, because emails can change, whereas a database ID can't.
-
anonymousId
String anonymousId()
The anonymous ID is an identifier that uniquely (or close enough) identifies the user, but isn't from your database. This is useful in cases where you are able to uniquely identifier the user between visits before they sign up thanks to a cookie, or session ID or device ID. In our mobile and browser libraries we will automatically handle sending the anonymous ID.
-
timestamp
Date timestamp()
Set a timestamp the event occurred.
This library will automatically create and attach a timestamp to all events.
-
integrations
ValueMap integrations()
A dictionary of integration names that the message should be proxied to. 'All' is a special name that applies when no key for a specific integration is found, and is case-insensitive.
-
putValue
BasePayload putValue(String key, Object value)
-
toBuilder
abstract BasePayload.Builder<?, ?> toBuilder()
-
-
-
-