-
public final class PinnedMessageListStateRepresents the pinned message list state, used to render the required UI.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleancanLoadMoreprivate final List<MessageResult>resultsprivate final BooleanisLoadingprivate final DatenextDate
-
Constructor Summary
Constructors Constructor Description PinnedMessageListState(Boolean canLoadMore, List<MessageResult> results, Boolean isLoading, Date nextDate)
-
Method Summary
Modifier and Type Method Description final BooleangetCanLoadMore()final List<MessageResult>getResults()final BooleangetIsLoading()final DategetNextDate()-
-
Constructor Detail
-
PinnedMessageListState
PinnedMessageListState(Boolean canLoadMore, List<MessageResult> results, Boolean isLoading, Date nextDate)
- Parameters:
canLoadMore- Indicator if we've reached the end of messages, to stop triggering pagination.results- The messages to render.isLoading- Indicator if we're currently loading data (initial load).nextDate- Date used to fetch next page of the messages.
-
-
Method Detail
-
getCanLoadMore
final Boolean getCanLoadMore()
-
getResults
final List<MessageResult> getResults()
-
getIsLoading
final Boolean getIsLoading()
-
getNextDate
final Date getNextDate()
-
-
-
-