-
public final class SearchViewModel.StateRepresents the search screen state, used to render the required UI.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringqueryprivate final BooleancanLoadMoreprivate final List<MessageResult>resultsprivate final BooleanisLoadingprivate final BooleanisLoadingMore
-
Method Summary
Modifier and Type Method Description final StringgetQuery()final BooleangetCanLoadMore()final List<MessageResult>getResults()final BooleangetIsLoading()final BooleangetIsLoadingMore()-
-
Constructor Detail
-
SearchViewModel.State
SearchViewModel.State(String query, Boolean canLoadMore, List<MessageResult> results, Boolean isLoading, Boolean isLoadingMore, String next)
- Parameters:
query- The current search query value.canLoadMore- If we've reached the end of messages, to stop triggering pagination.results- The found messages to render.isLoading- If we're currently loading data (initial load).isLoadingMore- If we're loading more items (pagination).next- The cursor for the next page of results.
-
-
Method Detail
-
getCanLoadMore
final Boolean getCanLoadMore()
-
getResults
final List<MessageResult> getResults()
-
getIsLoading
final Boolean getIsLoading()
-
getIsLoadingMore
final Boolean getIsLoadingMore()
-
-
-
-