Class MessagesListResponse
java.lang.Object
com.sinch.sdk.core.models.pagination.ListResponse<ConversationMessage>
com.sinch.sdk.domains.conversation.models.v1.messages.response.MessagesListResponse
Lists all messages response
- Since:
- 1.3
-
Constructor Summary
ConstructorDescriptionMessagesListResponse
(MessagesService service, com.sinch.sdk.core.models.pagination.Page<MessagesListRequest, ConversationMessage, String> page) -
Method Summary
Methods inherited from class com.sinch.sdk.core.models.pagination.ListResponse
iterator, stream
-
Constructor Details
-
MessagesListResponse
public MessagesListResponse(MessagesService service, com.sinch.sdk.core.models.pagination.Page<MessagesListRequest, ConversationMessage, String> page)
-
-
Method Details
-
hasNextPage
public boolean hasNextPage()Description copied from class:ListResponse
Indicate if another page response is available- Specified by:
hasNextPage
in classListResponse<ConversationMessage>
- 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
Description copied from class:ListResponse
Get next page response if available- Specified by:
nextPage
in classListResponse<ConversationMessage>
- 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
Description copied from class:ListResponse
Get the page items collection content- Specified by:
getContent
in classListResponse<ConversationMessage>
- Returns:
- The items related to current page content
-
toString
-