Package com.vonage.client.numbers
Class SearchNumbersResponse
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.numbers.SearchNumbersResponse
- All Implemented Interfaces:
Jsonable
Represents the response to a "searchNumbers" request from the Vonage API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchNumbersResponseCreates an instance of this class from a JSON payload.intgetCount()Total amount of numbers available in the pool.A paginated array of available numbers and their details.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
SearchNumbersResponse
public SearchNumbersResponse()
-
-
Method Details
-
getCount
Total amount of numbers available in the pool. Note that this is not the same as the size of getNumbers().- Returns:
- The total number of owned numbers.
-
getNumbers
A paginated array of available numbers and their details. Number of results will depend on what you set in BaseNumbersFilter.getSize().- Returns:
- The available numbers as an array.
-
fromJson
Creates an instance of this class from a JSON payload.- Parameters:
json- The JSON string to parse.- Returns:
- An instance of this class with all known fields populated from the JSON payload, if present.
-