public abstract class Event
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Event.Context
Account, user, and device information.
|
static class |
Event.Type
Event types.
|
| Constructor and Description |
|---|
Event(Event.Type eventType) |
| Modifier and Type | Method and Description |
|---|---|
Event.Context |
getContext() |
java.util.UUID |
getId() |
Location |
getLocation() |
java.lang.Long |
getSessionId() |
java.lang.String |
getSourceId() |
long |
getTimestamp() |
Event.Type |
getType() |
void |
setContext(Event.Context context) |
void |
setLocation(Location location) |
void |
setSessionId(java.lang.Long sessionId) |
void |
setSourceId(java.lang.String sourceId) |
void |
setTimestamp(long timestamp) |
public Event(Event.Type eventType)
public Event.Type getType()
public java.util.UUID getId()
public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - time in millisecondspublic java.lang.String getSourceId()
public void setSourceId(java.lang.String sourceId)
sourceId - source event idpublic java.lang.Long getSessionId()
public void setSessionId(java.lang.Long sessionId)
sessionId - session idpublic Location getLocation()
public void setLocation(Location location)
location - Geo locationpublic Event.Context getContext()
public void setContext(Event.Context context)
context - account, user, and device information