public class Activity extends NextGenInstanceResource<TwilioTaskRouterClient>
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getObject, getProperty, update, updatesetRequestAccountSidpublic Activity(TwilioTaskRouterClient client)
client - the clientpublic Activity(TwilioTaskRouterClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic Activity(TwilioTaskRouterClient client, String workspaceSid, String activitySid)
client - the clientworkspaceSid - the workspace sidactivitySid - the activity sidpublic String getAccountSid()
public Calendar getDateCreated()
public Calendar getDateUpdated()
public String getFriendlyName()
public String getSid()
public String getWorkspaceSid()
public boolean isAvailable()
Copyright © 2011 Twilio, Inc. All Rights Reserved.