public class Worker extends NextGenInstanceResource<TwilioTaskRouterClient>
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
getObject, getProperty, update, updatesetRequestAccountSidpublic Worker(TwilioTaskRouterClient client)
client - the clientpublic Worker(TwilioTaskRouterClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic Worker(TwilioTaskRouterClient client, String workspaceSid, String workerSid)
client - the clientworkspaceSid - the workspace sidworkerSid - the worker sidpublic 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.Copyright © 2011 Twilio, Inc. All Rights Reserved.