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

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

public class TaskList
extends NextGenListResource<Task,TwilioTaskRouterClient>
implements TaskFactory

TaskList to work with Task.


Constructor Summary
TaskList(TwilioTaskRouterClient client, String workspaceSid)
          Instantiates a task list.
TaskList(TwilioTaskRouterClient client, String workspaceSid, Map<String,String> filters)
          Instantiates a task list.
 
Method Summary
 Task create(List<org.apache.http.NameValuePair> params)
          Creates a task.
 Task create(Map<String,String> params)
          Creates a task.
 
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

TaskList

public TaskList(TwilioTaskRouterClient client,
                String workspaceSid)
Instantiates a task list.

Parameters:
client - the client
workspaceSid - the workspace sid

TaskList

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

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

create

public Task create(Map<String,String> params)
            throws TwilioRestException
Description copied from interface: TaskFactory
Creates a task.

Specified by:
create in interface TaskFactory
Parameters:
params - the params list
Returns:
a task
Throws:
TwilioRestException

create

public Task create(List<org.apache.http.NameValuePair> params)
            throws TwilioRestException
Description copied from interface: TaskFactory
Creates a task.

Specified by:
create in interface TaskFactory
Parameters:
params - the params list
Returns:
a task
Throws:
TwilioRestException


Copyright © 2011 Twilio, Inc. All Rights Reserved.