Package com.vonage.client.numbers
Class ListNumbersResponse
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.numbers.ListNumbersResponse
- All Implemented Interfaces:
Jsonable
Response from a request to list the numbers currently being rented buy an account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ListNumbersResponseCreates an instance of this class from a JSON payload.intgetCount()Total amount of numbers owned by the account.A paginated array of owned 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
-
ListNumbersResponse
public ListNumbersResponse()
-
-
Method Details
-
getCount
Total amount of numbers owned by the account. Note that this may not be the same as the size of getNumbers().- Returns:
- The total number of owned numbers.
-
getNumbers
A paginated array of owned numbers and their details. Number of results will depend on what you set in BaseNumbersFilter.getSize().- Returns:
- The owned 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.
-