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

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.Activity

public class Activity
extends NextGenInstanceResource<TwilioTaskRouterClient>

Activities describe the current status of your Worker resources, which determines whether they are eligible to receive Task assignments. Workers are always set to a single Activity. See the TaskRouter documentation.


Constructor Summary
Activity(TwilioTaskRouterClient client)
          Instantiates an activity.
Activity(TwilioTaskRouterClient client, Map<String,Object> properties)
          Instantiates an activity.
Activity(TwilioTaskRouterClient client, String workspaceSid, String activitySid)
          Instantiates an activity.
 
Method Summary
 String getAccountSid()
          The unique ID of the account that owns this Activity.
 Calendar getDateCreated()
          The date and time this Activity was created.
 Calendar getDateUpdated()
          The date and time this Activity was last updated.
 String getFriendlyName()
          A human-readable description of this Activity.
 String getSid()
          This Activity's unique ID.
 String getWorkspaceSid()
          The unique ID of the Workspace that contains this Activity.
 boolean isAvailable()
          Whether Workers in this Activity state are available to accept new tasks.
 
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

Activity

public Activity(TwilioTaskRouterClient client)
Instantiates an activity.

Parameters:
client - the client

Activity

public Activity(TwilioTaskRouterClient client,
                Map<String,Object> properties)
Instantiates an activity.

Parameters:
client - the client
properties - the properties

Activity

public Activity(TwilioTaskRouterClient client,
                String workspaceSid,
                String activitySid)
Instantiates an activity.

Parameters:
client - the client
workspaceSid - the workspace sid
activitySid - the activity sid
Method Detail

getAccountSid

public String getAccountSid()
The unique ID of the account that owns this Activity.

Returns:
the account sid

getDateCreated

public Calendar getDateCreated()
The date and time this Activity was created.

Returns:
the date created

getDateUpdated

public Calendar getDateUpdated()
The date and time this Activity was last updated.

Returns:
the date updated

getFriendlyName

public String getFriendlyName()
A human-readable description of this Activity.

Returns:
the friendly name

getSid

public String getSid()
This Activity's unique ID.

Returns:
the sid

getWorkspaceSid

public String getWorkspaceSid()
The unique ID of the Workspace that contains this Activity.

Returns:
the workspace sid

isAvailable

public boolean isAvailable()
Whether Workers in this Activity state are available to accept new tasks.

Returns:
true, if available


Copyright © 2011 Twilio, Inc. All Rights Reserved.