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

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

public class WorkflowList
extends NextGenListResource<Workflow,TwilioTaskRouterClient>
implements WorkflowFactory

WorkflowList to work with Workflow.


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

WorkflowList

public WorkflowList(TwilioTaskRouterClient client,
                    String workspaceSid)
Instantiates a workflow list.

Parameters:
client - the client
workspaceSid - the workspace sid

WorkflowList

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

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

create

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

Specified by:
create in interface WorkflowFactory
Parameters:
params - the params list
Returns:
a Workflow
Throws:
TwilioRestException

create

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

Specified by:
create in interface WorkflowFactory
Parameters:
params - the params list
Returns:
a Workflow
Throws:
TwilioRestException


Copyright © 2011 Twilio, Inc. All Rights Reserved.