public class AvailableNumber extends ResourceBase
client, id, properties
dateFormat
Constructor and Description |
---|
AvailableNumber(BandwidthClient client,
org.json.simple.JSONObject jsonObject) |
Modifier and Type | Method and Description |
---|---|
String |
getCity() |
String |
getLata() |
String |
getNationalNumber() |
String |
getNumber() |
String |
getPatternMatch() |
Double |
getPrice() |
String |
getRateCenter() |
String |
getState() |
protected String |
getUri() |
static ResourceList<AvailableNumber> |
list()
Factory method for AvailableNumber list, returns list of AvailableNumber objects with default page, size
|
static ResourceList<AvailableNumber> |
list(BandwidthClient client,
int page,
int size)
Factory method for AvailableNumber list, returns list of AvailableNumber objects with page,
size preferences, with a given client
|
static ResourceList<AvailableNumber> |
list(int page,
int size)
Factory method for AvailableNumber list, returns list of AvailableNumber objects with page, size preferences
|
static List<AvailableNumber> |
searchLocal(BandwidthClient client,
Map<String,Object> params)
Convenience factory method to return local numbers based on a given search criteria for a given client
|
static List<AvailableNumber> |
searchLocal(Map<String,Object> params)
Convenience factory method to return local numbers based on a given search criteria
|
static List<AvailableNumber> |
searchTollFree(BandwidthClient client,
Map<String,Object> params)
Convenience factory method to return tollfree numbers based on the given search criteria for a given client
|
static List<AvailableNumber> |
searchTollFree(Map<String,Object> params)
Convenience factory method to return tollfree numbers based on the given search criteria
|
protected void |
setUp(org.json.simple.JSONObject jsonObject) |
String |
toString() |
getClient, getId, getProperties, setId, toJSONArray, toJSONObject
getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
public AvailableNumber(BandwidthClient client, org.json.simple.JSONObject jsonObject)
public static ResourceList<AvailableNumber> list() throws IOException
IOException
- unexpected error.public static ResourceList<AvailableNumber> list(int page, int size) throws IOException
page
- the pagesize
- the page sizeIOException
- unexpected error.public static ResourceList<AvailableNumber> list(BandwidthClient client, int page, int size) throws IOException
client
- the clientpage
- the pagesize
- the page sizeIOException
- unexpected error.public static List<AvailableNumber> searchTollFree(Map<String,Object> params) throws Exception
params
- the paramsIOException
- unexpected error.Exception
public static List<AvailableNumber> searchTollFree(BandwidthClient client, Map<String,Object> params) throws Exception
client
- the clientparams
- the paramsIOException
- unexpected error.Exception
public static List<AvailableNumber> searchLocal(Map<String,Object> params) throws Exception
params
- the paramsIOException
- unexpected error.Exception
public static List<AvailableNumber> searchLocal(BandwidthClient client, Map<String,Object> params) throws Exception
client
- the clientparams
- the paramsIOException
- unexpected error.Exception
protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
protected String getUri()
public String getNumber()
public String getNationalNumber()
public String getPatternMatch()
public String getCity()
public String getLata()
public String getRateCenter()
public String getState()
public Double getPrice()
Copyright © 2015. All Rights Reserved.