com.twilio.sdk.resource.list.taskrouter
Class WorkerList

java.lang.Object
  extended by com.twilio.sdk.resource.Resource<C>
      extended by com.twilio.sdk.resource.NextGenListResource<Worker,TwilioTaskRouterClient>
          extended by com.twilio.sdk.resource.list.taskrouter.WorkerList
All Implemented Interfaces:
WorkerFactory, Iterable<Worker>

public class WorkerList
extends NextGenListResource<Worker,TwilioTaskRouterClient>
implements WorkerFactory

WorkerList to work with Worker.


Constructor Summary
WorkerList(TwilioTaskRouterClient client, String workspaceSid)
          Instantiates a worker list.
WorkerList(TwilioTaskRouterClient client, String workspaceSid, Map<String,String> filters)
          Instantiates a worker list.
 
Method Summary
 Worker create(List<org.apache.http.NameValuePair> params)
          Creates a worker.
 Worker create(Map<String,String> params)
          Creates a worker.
 
Methods inherited from class com.twilio.sdk.resource.NextGenListResource
getNextPageUrl, getPage, getPageData, getPageSize, getPreviousPageUrl, getUrl, iterator
 
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

WorkerList

public WorkerList(TwilioTaskRouterClient client,
                  String workspaceSid)
Instantiates a worker list.

Parameters:
client - the client
workspaceSid - the workspace sid

WorkerList

public WorkerList(TwilioTaskRouterClient client,
                  String workspaceSid,
                  Map<String,String> filters)
Instantiates a worker list.

Parameters:
client - the client
workspaceSid - the workspace sid
filters - the filters
Method Detail

create

public Worker create(Map<String,String> params)
              throws TwilioRestException
Description copied from interface: WorkerFactory
Creates a worker.

Specified by:
create in interface WorkerFactory
Parameters:
params - the params list
Returns:
a worker
Throws:
TwilioRestException

create

public Worker create(List<org.apache.http.NameValuePair> params)
              throws TwilioRestException
Description copied from interface: WorkerFactory
Creates a worker.

Specified by:
create in interface WorkerFactory
Parameters:
params - the params list
Returns:
a worker
Throws:
TwilioRestException


Copyright © 2011 Twilio, Inc. All Rights Reserved.