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 |
---|---|
java.lang.String |
getCity() |
java.lang.String |
getLata() |
java.lang.String |
getNationalNumber() |
java.lang.String |
getNumber() |
java.lang.String |
getPatternMatch() |
java.lang.Double |
getPrice() |
java.lang.String |
getRateCenter() |
java.lang.String |
getState() |
protected java.lang.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 java.util.List<AvailableNumber> |
searchLocal(BandwidthClient client,
java.util.Map<java.lang.String,java.lang.Object> params)
Convenience factory method to return local numbers based on a given search criteria for a given client
|
static java.util.List<AvailableNumber> |
searchLocal(java.util.Map<java.lang.String,java.lang.Object> params)
Convenience factory method to return local numbers based on a given search criteria
|
static java.util.List<AvailableNumber> |
searchTollFree(BandwidthClient client,
java.util.Map<java.lang.String,java.lang.Object> params)
Convenience factory method to return tollfree numbers based on the given search criteria for a given client
|
static java.util.List<AvailableNumber> |
searchTollFree(java.util.Map<java.lang.String,java.lang.Object> params)
Convenience factory method to return tollfree numbers based on the given search criteria
|
protected void |
setUp(org.json.simple.JSONObject jsonObject) |
java.lang.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 java.io.IOException
java.io.IOException
- unexpected error.public static ResourceList<AvailableNumber> list(int page, int size) throws java.io.IOException
page
- the pagesize
- the page sizejava.io.IOException
- unexpected error.public static ResourceList<AvailableNumber> list(BandwidthClient client, int page, int size) throws java.io.IOException
client
- the clientpage
- the pagesize
- the page sizejava.io.IOException
- unexpected error.public static java.util.List<AvailableNumber> searchTollFree(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- the paramsjava.io.IOException
- unexpected error.java.lang.Exception
public static java.util.List<AvailableNumber> searchTollFree(BandwidthClient client, java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
client
- the clientparams
- the paramsjava.io.IOException
- unexpected error.java.lang.Exception
public static java.util.List<AvailableNumber> searchLocal(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
params
- the paramsjava.io.IOException
- unexpected error.java.lang.Exception
public static java.util.List<AvailableNumber> searchLocal(BandwidthClient client, java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
client
- the clientparams
- the paramsjava.io.IOException
- unexpected error.java.lang.Exception
protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
protected java.lang.String getUri()
public java.lang.String getNumber()
public java.lang.String getNationalNumber()
public java.lang.String getPatternMatch()
public java.lang.String getCity()
public java.lang.String getLata()
public java.lang.String getRateCenter()
public java.lang.String getState()
public java.lang.Double getPrice()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019. All Rights Reserved.