Class MessageListPage
-
- All Implemented Interfaces:
public final class MessageListPage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
MessageListPage.Builder
A builder for MessageListPage.
public final class
MessageListPage.AutoPager
-
Method Summary
Modifier and Type Method Description final List<Message>
data()
Delegates to MessageListPageResponse, but gracefully handles missing data. final Optional<Boolean>
hasMore()
Delegates to MessageListPageResponse, but gracefully handles missing data. final Boolean
hasNextPage()
final Optional<MessageListParams>
getNextPageParams()
final Optional<MessageListPage>
getNextPage()
final MessageListPage.AutoPager
autoPager()
final MessageListParams
params()
The parameters that were used to request this page. final MessageListPageResponse
response()
The response that this page was parsed from. final MessageListPage.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static MessageListPage.Builder
builder()
Returns a mutable builder for constructing an instance of MessageListPage. -
-
Method Detail
-
data
final List<Message> data()
Delegates to MessageListPageResponse, but gracefully handles missing data.
-
hasMore
final Optional<Boolean> hasMore()
Delegates to MessageListPageResponse, but gracefully handles missing data.
-
hasNextPage
final Boolean hasNextPage()
-
getNextPageParams
final Optional<MessageListParams> getNextPageParams()
-
getNextPage
final Optional<MessageListPage> getNextPage()
-
autoPager
final MessageListPage.AutoPager autoPager()
-
params
final MessageListParams params()
The parameters that were used to request this page.
-
response
final MessageListPageResponse response()
The response that this page was parsed from.
-
toBuilder
final MessageListPage.Builder toBuilder()
-
builder
final static MessageListPage.Builder builder()
Returns a mutable builder for constructing an instance of MessageListPage.
The following fields are required:
.service() .params() .response()
-
-
-
-