Class ActiveNumberListResponse
- java.lang.Object
-
- com.sinch.sdk.core.models.pagination.ListResponse<ActiveNumber>
-
- com.sinch.sdk.domains.numbers.models.responses.ActiveNumberListResponse
-
public class ActiveNumberListResponse extends ListResponse<ActiveNumber>
Lists all active numbers for a project- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description ActiveNumberListResponse(ActiveNumberService service, com.sinch.sdk.core.models.pagination.Page<ActiveNumberListRequestParameters,ActiveNumber,String> page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ActiveNumber>getContent()Get the page items collection contentbooleanhasNextPage()Indicate if another page response is availableActiveNumberListResponsenextPage()Get next page response if availableStringtoString()-
Methods inherited from class com.sinch.sdk.core.models.pagination.ListResponse
iterator, stream
-
-
-
-
Constructor Detail
-
ActiveNumberListResponse
public ActiveNumberListResponse(ActiveNumberService service, com.sinch.sdk.core.models.pagination.Page<ActiveNumberListRequestParameters,ActiveNumber,String> page)
-
-
Method Detail
-
hasNextPage
public boolean hasNextPage()
Description copied from class:ListResponseIndicate if another page response is available- Specified by:
hasNextPagein classListResponse<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:ListResponseGet next page response if available- Specified by:
nextPagein classListResponse<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
-
getContent
public Collection<ActiveNumber> getContent()
Description copied from class:ListResponseGet the page items collection content- Specified by:
getContentin classListResponse<ActiveNumber>- Returns:
- The items related to current page content
-
-