public class TaskList extends NextGenListResource<Task,TwilioTaskRouterClient> implements Factory<Task>
Task.| Constructor and Description |
|---|
TaskList(TwilioTaskRouterClient client,
String workspaceSid)
Instantiates a task list.
|
TaskList(TwilioTaskRouterClient client,
String workspaceSid,
Map<String,String> filters)
Instantiates a task list.
|
| Modifier and Type | Method and Description |
|---|---|
Task |
create(List<org.apache.http.NameValuePair> params)
Creates a task router resource
|
Task |
create(Map<String,String> params)
Creates a task router resource
|
Task |
create(String workflowSid,
Map<String,String> attributes,
Integer priority,
Integer timeout) |
getNextPageUrl, getPage, getPageData, getPageSize, getPreviousPageUrl, getUrl, iteratorsetRequestAccountSidequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic TaskList(TwilioTaskRouterClient client, String workspaceSid)
client - the clientworkspaceSid - the workspace sidpublic TaskList(TwilioTaskRouterClient client, String workspaceSid, Map<String,String> filters)
client - the clientworkspaceSid - the workspace sidfilters - the filterspublic Task create(Map<String,String> params) throws TwilioRestException
Factorycreate in interface Factory<Task>params - the params listTwilioRestExceptionpublic Task create(List<org.apache.http.NameValuePair> params) throws TwilioRestException
Factorycreate in interface Factory<Task>params - the params listTwilioRestExceptionpublic Task create(String workflowSid, Map<String,String> attributes, Integer priority, Integer timeout) throws TwilioRestException
TwilioRestExceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.