public class AccountList extends ListResource<Account,TwilioRestClient> implements AccountFactory
Constructor and Description |
---|
AccountList(TwilioRestClient client)
Instantiate a new AccountList
|
AccountList(TwilioRestClient client,
Map<String,String> filters)
Instantiates a new account list with the given filters.
|
Modifier and Type | Method and Description |
---|---|
Account |
create(List<org.apache.http.NameValuePair> params) |
Account |
create(Map<String,String> params)
Creates a subaccount.
|
getEnd, getNextUri, getNumPages, getPage, getPageData, getStart, getTotal, iterator
setRequestAccountSid
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public AccountList(TwilioRestClient client)
public AccountList(TwilioRestClient client, Map<String,String> filters)
client
- the clientfilters
- the filterspublic Account create(Map<String,String> params) throws TwilioRestException
AccountFactory
create
in interface AccountFactory
params
- the paramsTwilioRestException
public Account create(List<org.apache.http.NameValuePair> params) throws TwilioRestException
create
in interface AccountFactory
TwilioRestException
Copyright © 2011 Twilio, Inc. All Rights Reserved.