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

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

public class Worker
extends NextGenInstanceResource<TwilioTaskRouterClient>

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

Worker

public Worker(TwilioTaskRouterClient client)
Instantiates a worker.

Parameters:
client - the client

Worker

public Worker(TwilioTaskRouterClient client,
              Map<String,Object> properties)
Instantiates a worker.

Parameters:
client - the client
properties - the properties

Worker

public Worker(TwilioTaskRouterClient client,
              String workspaceSid,
              String workerSid)
Instantiates a worker.

Parameters:
client - the client
workspaceSid - the workspace sid
workerSid - the worker sid
Method Detail

getAccountSid

public String getAccountSid()
The ID of the Account that owns this worker.

Returns:
the account sid

getActivityName

public String getActivityName()
String describing the worker's current activity, for example 'on-call', 'after-call-work', 'break', etc. Workers may only perform Activities that exist in this Workspace.

Returns:
the activity name

getActivitySid

public String getActivitySid()
The ID of the Activity this Worker is currently performing.

Returns:
the activity sid

getAttributes

public String getAttributes()
A user-defined JSON object describing this Worker.

Returns:
the attributes

getDateCreated

public Date getDateCreated()
The date and time this Worker was created.

Returns:
the date created

getDateStatusChanged

public Date getDateStatusChanged()
The date and time this Worker's Activity status last changed.

Returns:
the date updated

getDateUpdated

public Date getDateUpdated()
The date and time this Worker was last updated.

Returns:
the date updated

getFriendlyName

public String getFriendlyName()
A human-readable name for this Worker.

Returns:
the friendly name

getSid

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

Returns:
the sid

getWorkspaceSid

public String getWorkspaceSid()
The ID of the Workspace containing this Worker.

Returns:
the workspace sid

isAvailable

public boolean isAvailable()
Whether this Worker can be assigned another Task.

Returns:
true, if available


Copyright © 2011 Twilio, Inc. All Rights Reserved.