com.twilio.sdk.resource.instance.taskrouter
Class Event

java.lang.Object
  extended by com.twilio.sdk.resource.Resource<C>
      extended by com.twilio.sdk.resource.InstanceResource<C>
          extended by com.twilio.sdk.resource.NextGenInstanceResource<TwilioTaskRouterClient>
              extended by com.twilio.sdk.resource.instance.taskrouter.Event

public class Event
extends NextGenInstanceResource<TwilioTaskRouterClient>

TaskRouter logs Events for each state change in the Workspace for the purpose of historical reporting and auditing. See the TaskRouter documentation.


Constructor Summary
Event(TwilioTaskRouterClient client)
          Instantiates an event.
Event(TwilioTaskRouterClient client, Map<String,Object> properties)
          Instantiates an event.
Event(TwilioTaskRouterClient client, String workspaceSid, String eventSid)
          Instantiates an event.
 
Method Summary
 String getAccountSid()
          The Account owning this Event.
 String getActorSid()
          The unique ID of the actor that generated this Event.
 String getActorType()
          The type of the actor that generated this Event.
 String getActorUrl()
          The URL for the resource representing the actor that generated this Event.
 String getDescription()
          A description of this event.
 Map<String,String> getEventData()
          Data about this specific event.
 Calendar getEventDate()
          The date and time this Event occurred.
 String getEventType()
          An identifier for this type of Event.
 String getResourceSid()
          The sid of the object this event is most relevant to (TaskSid, ReservationSid, WorkerSid)
 String getResourceType()
          The type of object this event is most relevant to (Task, Reservation, Worker)
 String getResourceUrl()
          Gets the resource url.
 String getSid()
          Gets the sid.
 String getSource()
           
 String getSourceIpAddress()
           
 String getWorkspaceSid()
          Gets the workspace sid.
 
Methods inherited from class com.twilio.sdk.resource.InstanceResource
getObject, getProperty, update, update
 
Methods inherited from class com.twilio.sdk.resource.Resource
setRequestAccountSid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event(TwilioTaskRouterClient client)
Instantiates an event.

Parameters:
client - the client

Event

public Event(TwilioTaskRouterClient client,
             Map<String,Object> properties)
Instantiates an event.

Parameters:
client - the client
properties - the properties

Event

public Event(TwilioTaskRouterClient client,
             String workspaceSid,
             String eventSid)
Instantiates an event.

Parameters:
client - the client
workspaceSid - the workspace sid
eventSid - the event sid
Method Detail

getAccountSid

public String getAccountSid()
The Account owning this Event.

Returns:
the account sid

getActorSid

public String getActorSid()
The unique ID of the actor that generated this Event.

Returns:
the actor sid

getActorType

public String getActorType()
The type of the actor that generated this Event.

Returns:
the actor type

getActorUrl

public String getActorUrl()
The URL for the resource representing the actor that generated this Event.

Returns:
the actor url

getDescription

public String getDescription()
A description of this event.

Returns:
the description

getEventData

public Map<String,String> getEventData()
Data about this specific event. See the Event documentation.

Returns:
the event data

getEventDate

public Calendar getEventDate()
The date and time this Event occurred.

Returns:
the event date

getEventType

public String getEventType()
An identifier for this type of Event.

Returns:
the event type

getResourceSid

public String getResourceSid()
The sid of the object this event is most relevant to (TaskSid, ReservationSid, WorkerSid)

Returns:
the resource sid

getResourceType

public String getResourceType()
The type of object this event is most relevant to (Task, Reservation, Worker)

Returns:
the resource type

getResourceUrl

public String getResourceUrl()
Gets the resource url.

Returns:
the resource url

getSid

public String getSid()
Gets the sid.

Returns:
the sid

getSource

public String getSource()

getSourceIpAddress

public String getSourceIpAddress()

getWorkspaceSid

public String getWorkspaceSid()
Gets the workspace sid.

Returns:
the workspace sid


Copyright © 2011 Twilio, Inc. All Rights Reserved.