com.twilio.sdk.resource.list
Class IncomingPhoneNumberList

java.lang.Object
  extended by com.twilio.sdk.resource.Resource
      extended by com.twilio.sdk.resource.ListResource<IncomingPhoneNumber>
          extended by com.twilio.sdk.resource.list.IncomingPhoneNumberList
All Implemented Interfaces:
IncomingPhoneNumberFactory, Iterable<IncomingPhoneNumber>

public class IncomingPhoneNumberList
extends ListResource<IncomingPhoneNumber>
implements IncomingPhoneNumberFactory

The Class IncomingPhoneNumberList. For more information see https://www.twilio.com/docs/api/rest/incoming-phone-numbers


Field Summary
 String type
          The type.
static String TYPE_LOCAL
           
static String TYPE_MOBILE
           
static String TYPE_TOLLFREE
           
 
Constructor Summary
IncomingPhoneNumberList(TwilioRestClient client)
          Instantiates a new incoming phone number list.
IncomingPhoneNumberList(TwilioRestClient client, Map<String,String> filters)
          Instantiates a new incoming phone number list.
IncomingPhoneNumberList(TwilioRestClient client, String type)
          Instantiates a new incoming phone number list.
IncomingPhoneNumberList(TwilioRestClient client, String type, Map<String,String> filters)
          Instantiates a new incoming phone number list.
 
Method Summary
 IncomingPhoneNumber create(List<org.apache.http.NameValuePair> params)
          Creates the IncomingPhoneNumber
 IncomingPhoneNumber create(Map<String,String> params)
          Creates the IncomingPhoneNumber
 
Methods inherited from class com.twilio.sdk.resource.ListResource
getEnd, getNextUri, getNumPages, getPage, getPageData, getStart, getTotal, 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
 

Field Detail

TYPE_LOCAL

public static final String TYPE_LOCAL
See Also:
Constant Field Values

TYPE_TOLLFREE

public static final String TYPE_TOLLFREE
See Also:
Constant Field Values

TYPE_MOBILE

public static final String TYPE_MOBILE
See Also:
Constant Field Values

type

public String type
The type.

Constructor Detail

IncomingPhoneNumberList

public IncomingPhoneNumberList(TwilioRestClient client)
Instantiates a new incoming phone number list.

Parameters:
client - the client

IncomingPhoneNumberList

public IncomingPhoneNumberList(TwilioRestClient client,
                               Map<String,String> filters)
Instantiates a new incoming phone number list.

Parameters:
client - the client
filters - the filters

IncomingPhoneNumberList

public IncomingPhoneNumberList(TwilioRestClient client,
                               String type,
                               Map<String,String> filters)
Instantiates a new incoming phone number list.

Parameters:
client - the client
type - the type
filters - the filters

IncomingPhoneNumberList

public IncomingPhoneNumberList(TwilioRestClient client,
                               String type)
Instantiates a new incoming phone number list.

Parameters:
client - the client
type - the type
Method Detail

create

public IncomingPhoneNumber create(Map<String,String> params)
                           throws TwilioRestException
Description copied from interface: IncomingPhoneNumberFactory
Creates the IncomingPhoneNumber

Specified by:
create in interface IncomingPhoneNumberFactory
Parameters:
params - the params map
Returns:
the incoming phone number
Throws:
TwilioRestException

create

public IncomingPhoneNumber create(List<org.apache.http.NameValuePair> params)
                           throws TwilioRestException
Description copied from interface: IncomingPhoneNumberFactory
Creates the IncomingPhoneNumber

Specified by:
create in interface IncomingPhoneNumberFactory
Parameters:
params - the param list
Returns:
the incoming phone number
Throws:
TwilioRestException


Copyright © 2011 Twilio, Inc. All Rights Reserved.