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

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

public class WorkspaceList
extends NextGenListResource<Workspace,TwilioTaskRouterClient>
implements WorkspaceFactory

WorkspaceList to work with Workspace.


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

WorkspaceList

public WorkspaceList(TwilioTaskRouterClient client)
Instantiates a workspace list.

Parameters:
client - the client

WorkspaceList

public WorkspaceList(TwilioTaskRouterClient client,
                     Map<String,String> filters)
Instantiates a workspace list.

Parameters:
client - the client
filters - the filters
Method Detail

create

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

Specified by:
create in interface WorkspaceFactory
Parameters:
params - the params list
Returns:
a workspace
Throws:
TwilioRestException

create

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

Specified by:
create in interface WorkspaceFactory
Parameters:
params - the params list
Returns:
a workspace
Throws:
TwilioRestException


Copyright © 2011 Twilio, Inc. All Rights Reserved.