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 Details

  • Method Details

    • getCount

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

      public OwnedNumber[] 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

      public static ListNumbersResponse 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.