Class Event
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.taskrouter.v1.workspace.Event
-
- All Implemented Interfaces:
Serializable
public class Event extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static EventFetcher
fetcher(String pathWorkspaceSid, String pathSid)
Create a EventFetcher to execute fetch.static Event
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Event object using the provided ObjectMapper.static Event
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Event object using the provided ObjectMapper.String
getAccountSid()
Returns The The account owning this event.String
getActorSid()
Returns The The actor_sid.String
getActorType()
Returns The The actor_type.URI
getActorUrl()
Returns The The actor_url.String
getDescription()
Returns The A description of the event.Map<String,Object>
getEventData()
Returns The Data about this specific event..org.joda.time.DateTime
getEventDate()
Returns The The time this event was sent.Long
getEventDateMs()
Returns The The time this event was sent in ms.String
getEventType()
Returns The An identifier for this event.String
getResourceSid()
Returns The The sid of the object this event is most relevant to.String
getResourceType()
Returns The The type of object this event is most relevant to.URI
getResourceUrl()
Returns The The resource_url.String
getSid()
Returns The The sid.String
getSource()
Returns The The source.String
getSourceIpAddress()
Returns The The source_ip_address.URI
getUrl()
Returns The The url.String
getWorkspaceSid()
Returns The The workspace_sid.int
hashCode()
static EventReader
reader(String pathWorkspaceSid)
Create a EventReader to execute read.String
toString()
-
-
-
Method Detail
-
fetcher
public static EventFetcher fetcher(String pathWorkspaceSid, String pathSid)
Create a EventFetcher to execute fetch.- Parameters:
pathWorkspaceSid
- The workspace_sidpathSid
- The sid- Returns:
- EventFetcher capable of executing the fetch
-
reader
public static EventReader reader(String pathWorkspaceSid)
Create a EventReader to execute read.- Parameters:
pathWorkspaceSid
- Filter events by those pertaining to a particular workspace- Returns:
- EventReader capable of executing the read
-
fromJson
public static Event fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Event object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Event object represented by the provided JSON
-
fromJson
public static Event fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Event object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Event object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The account owning this event.- Returns:
- The account owning this event
-
getActorSid
public final String getActorSid()
Returns The The actor_sid.- Returns:
- The actor_sid
-
getActorType
public final String getActorType()
Returns The The actor_type.- Returns:
- The actor_type
-
getActorUrl
public final URI getActorUrl()
Returns The The actor_url.- Returns:
- The actor_url
-
getDescription
public final String getDescription()
Returns The A description of the event.- Returns:
- A description of the event
-
getEventData
public final Map<String,Object> getEventData()
Returns The Data about this specific event..- Returns:
- Data about this specific event.
-
getEventDate
public final org.joda.time.DateTime getEventDate()
Returns The The time this event was sent.- Returns:
- The time this event was sent
-
getEventDateMs
public final Long getEventDateMs()
Returns The The time this event was sent in ms.- Returns:
- The time this event was sent in ms
-
getEventType
public final String getEventType()
Returns The An identifier for this event.- Returns:
- An identifier for this event
-
getResourceSid
public final String getResourceSid()
Returns The The sid of the object this event is most relevant to.- Returns:
- The sid of the object this event is most relevant to
-
getResourceType
public final String getResourceType()
Returns The The type of object this event is most relevant to.- Returns:
- The type of object this event is most relevant to
-
getResourceUrl
public final URI getResourceUrl()
Returns The The resource_url.- Returns:
- The resource_url
-
getSid
public final String getSid()
Returns The The sid.- Returns:
- The sid
-
getSource
public final String getSource()
Returns The The source.- Returns:
- The source
-
getSourceIpAddress
public final String getSourceIpAddress()
Returns The The source_ip_address.- Returns:
- The source_ip_address
-
getUrl
public final URI getUrl()
Returns The The url.- Returns:
- The url
-
getWorkspaceSid
public final String getWorkspaceSid()
Returns The The workspace_sid.- Returns:
- The workspace_sid
-
-