|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.twilio.sdk.resource.Resource<C>
com.twilio.sdk.resource.InstanceResource<C>
com.twilio.sdk.resource.NextGenInstanceResource<TwilioTaskRouterClient>
com.twilio.sdk.resource.instance.taskrouter.Worker
public class Worker
Workers represent an entity that is able to perform tasks, such as an agent working in a call center, or a salesperson handling leads. See the TaskRouter documentation.
| Constructor Summary | |
|---|---|
Worker(TwilioTaskRouterClient client)
Instantiates a worker. |
|
Worker(TwilioTaskRouterClient client,
Map<String,Object> properties)
Instantiates a worker. |
|
Worker(TwilioTaskRouterClient client,
String workspaceSid,
String workerSid)
Instantiates a worker. |
|
| Method Summary | |
|---|---|
String |
getAccountSid()
The ID of the Account that owns this worker. |
String |
getActivityName()
String describing the worker's current activity, for example 'on-call', 'after-call-work', 'break', etc. |
String |
getActivitySid()
The ID of the Activity this Worker is currently performing. |
String |
getAttributes()
A user-defined JSON object describing this Worker. |
Date |
getDateCreated()
The date and time this Worker was created. |
Date |
getDateStatusChanged()
The date and time this Worker's Activity status last changed. |
Date |
getDateUpdated()
The date and time this Worker was last updated. |
String |
getFriendlyName()
A human-readable name for this Worker. |
String |
getSid()
This Worker's unique ID. |
String |
getWorkspaceSid()
The ID of the Workspace containing this Worker. |
boolean |
isAvailable()
Whether this Worker can be assigned another Task. |
| 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 |
|---|
public Worker(TwilioTaskRouterClient client)
client - the client
public Worker(TwilioTaskRouterClient client,
Map<String,Object> properties)
client - the clientproperties - the properties
public Worker(TwilioTaskRouterClient client,
String workspaceSid,
String workerSid)
client - the clientworkspaceSid - the workspace sidworkerSid - the worker sid| Method Detail |
|---|
public String getAccountSid()
Account that owns this worker.
public String getActivityName()
public String getActivitySid()
Activity this Worker is currently performing.
public String getAttributes()
public Date getDateCreated()
public Date getDateStatusChanged()
public Date getDateUpdated()
public String getFriendlyName()
public String getSid()
public String getWorkspaceSid()
Workspace containing this Worker.
public boolean isAvailable()
Task.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||