Class GroupsListResponse
- java.lang.Object
-
- com.sinch.sdk.core.models.pagination.ListResponse<Group>
-
- com.sinch.sdk.domains.sms.models.responses.GroupsListResponse
-
public class GroupsListResponse extends ListResponse<Group>
Groups List response- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description GroupsListResponse(GroupsService service, com.sinch.sdk.core.models.pagination.Page<GroupsListRequestParameters,Group,Integer> page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Group>
getContent()
Get the page items collection contentboolean
hasNextPage()
Indicate if another page response is availableGroupsListResponse
nextPage()
Get next page response if availableString
toString()
-
Methods inherited from class com.sinch.sdk.core.models.pagination.ListResponse
iterator, stream
-
-
-
-
Constructor Detail
-
GroupsListResponse
public GroupsListResponse(GroupsService service, com.sinch.sdk.core.models.pagination.Page<GroupsListRequestParameters,Group,Integer> page)
-
-
Method Detail
-
hasNextPage
public boolean hasNextPage()
Description copied from class:ListResponse
Indicate if another page response is available- Specified by:
hasNextPage
in classListResponse<Group>
- 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 GroupsListResponse nextPage()
Description copied from class:ListResponse
Get next page response if available- Specified by:
nextPage
in classListResponse<Group>
- 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<Group> getContent()
Description copied from class:ListResponse
Get the page items collection content- Specified by:
getContent
in classListResponse<Group>
- Returns:
- The items related to current page content
-
-