Class PinnedMessageListViewModel.State
-
- All Implemented Interfaces:
public final class PinnedMessageListViewModel.StateRepresents the pinned messages state, used to render the required UI.
-
-
Constructor Summary
Constructors Constructor Description PinnedMessageListViewModel.State(Boolean canLoadMore, List<Message> results, Boolean isLoading, Date nextDate)
-
Method Summary
Modifier and Type Method Description final BooleangetCanLoadMore()final List<Message>getResults()final BooleanisLoading()final DategetNextDate()-
-
Constructor Detail
-
PinnedMessageListViewModel.State
PinnedMessageListViewModel.State(Boolean canLoadMore, List<Message> results, Boolean isLoading, Date nextDate)
- Parameters:
canLoadMore- If we've reached the end of messages, to stop triggering pagination.results- The messages to render.isLoading- 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<Message> getResults()
-
getNextDate
final Date getNextDate()
-
-
-
-