Class Event
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.proactiveconnect.Event
- All Implemented Interfaces:
Jsonable
Represents an event in the Proactive Connect API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EventCreates an instance of this class from a JSON payload.Unique identifier for the action.getData()Custom data as key-value pairs for this event.getId()Unique identifier for this item.Unique identifier for the action invocation.getJobId()Unique identifier for the job.Date and time the event occurred in ISO 8601 format.String identifier of a recipient, for example their email, phone number etc.getRunId()Unique identifier for the run.Identifier for the item ID during a job run - this is the list item ID which is copied while taking the list snapshot.The name of the segment or matcher.getType()Classification of the event.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
Event
protected Event()
-
-
Method Details
-
getData
Custom data as key-value pairs for this event.- Returns:
- The event data as a Map, or
nullif absent.
-
getId
Unique identifier for this item.- Returns:
- The item ID or
nullif unknown.
-
getJobId
Unique identifier for the job.- Returns:
- The job ID or
nullif unknown.
-
getRunId
Unique identifier for the run.- Returns:
- The run ID or
nullif unknown.
-
getRunItemId
Identifier for the item ID during a job run - this is the list item ID which is copied while taking the list snapshot.- Returns:
- The run's item ID or
nullif unknown.
-
getActionId
Unique identifier for the action.- Returns:
- The action ID or
nullif unknown.
-
getInvocationId
Unique identifier for the action invocation.- Returns:
- The action invocation ID or
nullif unknown.
-
getRecipientId
String identifier of a recipient, for example their email, phone number etc.- Returns:
- The recipient ID or
nullif unknown.
-
getSourceContext
The name of the segment or matcher.- Returns:
- The source context or
nullif unknown.
-
getOccurredAt
Date and time the event occurred in ISO 8601 format.- Returns:
- The event timestamp or
nullif unknown.
-
getType
Classification of the event.- Returns:
- The event type as an enum.
-
fromJson
Creates an instance of this class from a JSON payload.- Parameters:
json- The JSON string to parse.- Returns:
- An instance of this class with the fields populated, if present.
-