public static class Indicative.Event extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Indicative.Event(String eventName)
A constructor that sets the initial values for the Event object's
apiKey, eventName, and eventTime fields.
|
protected |
Indicative.Event(String eventName,
String apiKey)
A constructor that sets the initial values for the Event object's
apiKey, eventName, and eventTime fields.
|
| Modifier and Type | Method and Description |
|---|---|
Indicative.Event |
addEventTime(long eventTime)
Sets the Event object's eventTime field.
|
Indicative.Event |
addProperties(Map<String,String> propertyMap)
Adds a Map of property name/value pairs to the Event object's Map of
properties.
|
Indicative.Event |
addProperty(String name,
boolean value)
Adds a property name/value pair to the Event object's Map of
properties.
|
Indicative.Event |
addProperty(String name,
double value)
Adds a property name/value pair to the Event object's Map of
properties.
|
Indicative.Event |
addProperty(String name,
float value)
Adds a property name/value pair to the Event object's Map of
properties.
|
Indicative.Event |
addProperty(String name,
int value)
Adds a property name/value pair to the Event object's Map of
properties.
|
Indicative.Event |
addProperty(String name,
long value)
Adds a property name/value pair to the Event object's Map of
properties.
|
Indicative.Event |
addProperty(String name,
String value)
Adds a property name/value pair to the Event object's Map of
properties.
|
void |
done()
Creates a new Thread to asynchronously post the event.
|
String |
toJson()
Serializes the event to a JSON String.
|
Indicative.Event |
uniqueId(String eventUniqueId)
Adds the user's unique identifier to the Event object.
|
protected Indicative.Event(String eventName)
eventName - The name of your event.public void done()
public Indicative.Event addEventTime(long eventTime)
eventTime - The UNIX timestamp (in milliseconds) when your event
occurred.public Indicative.Event addProperty(String name, String value)
name - The name of the property.value - The value of the property.public Indicative.Event addProperty(String name, int value)
name - The name of the property.value - The value of the property.public Indicative.Event addProperty(String name, long value)
name - The name of the property.value - The value of the property.public Indicative.Event addProperty(String name, float value)
name - The name of the property.value - The value of the property.public Indicative.Event addProperty(String name, double value)
name - The name of the property.value - The value of the property.public Indicative.Event addProperty(String name, boolean value)
name - The name of the property.value - The value of the property.public Indicative.Event addProperties(Map<String,String> propertyMap)
propertyMap - A map of Strings representing property names and
values.public Indicative.Event uniqueId(String eventUniqueId)
eventUniqueId - The unique identifier for the user associated
with the event.public String toJson()
Copyright © 2014. All Rights Reserved.