Class ActiveNumberListResponse

java.lang.Object
com.sinch.sdk.core.models.pagination.ListResponse<ActiveNumber>
com.sinch.sdk.domains.numbers.models.v1.response.ActiveNumberListResponse

public class ActiveNumberListResponse extends ListResponse<ActiveNumber>
Lists all active numbers for a project
Since:
1.2
  • Constructor Details

  • Method Details

    • hasNextPage

      public boolean hasNextPage()
      Description copied from class: ListResponse
      Indicate if another page response is available
      Specified by:
      hasNextPage in class ListResponse<ActiveNumber>
      Returns:
      Returns true if the iteration has more pages. (In other words, returns true if next() would return a page rather than throwing an exception.)
    • nextPage

      public ActiveNumberListResponse nextPage()
      Description copied from class: ListResponse
      Get next page response if available
      Specified by:
      nextPage in class ListResponse<ActiveNumber>
      Returns:
      Returns the next page in the pagination/iteration. Next page response. Exception is throw in case no page available; call hasNextPage before to ensure is page is available
    • getNextPageToken

      public String getNextPageToken()
      Deprecated.
      Do not use / Internal usage only
      Returns:
      Internal usage only
    • getContent

      public Collection<ActiveNumber> getContent()
      Description copied from class: ListResponse
      Get the page items collection content
      Specified by:
      getContent in class ListResponse<ActiveNumber>
      Returns:
      The items related to current page content
    • toString

      public String toString()
      Overrides:
      toString in class Object