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 Details

  • Method Details

    • getCount

      public int 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

      public static SearchNumbersResponse fromJson(String json)
      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.