-
public final class ThreadListStateRepresents the Threads list state, used to render the Threads list UI.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<Thread>threadsprivate final BooleanisLoadingprivate final BooleanisLoadingMoreprivate final IntegerunseenThreadsCountprivate final BooleanloadingError
-
Method Summary
Modifier and Type Method Description final List<Thread>getThreads()final BooleangetIsLoading()final BooleangetIsLoadingMore()final IntegergetUnseenThreadsCount()final BooleangetLoadingError()-
-
Constructor Detail
-
ThreadListState
ThreadListState(List<Thread> threads, Boolean isLoading, Boolean isLoadingMore, Integer unseenThreadsCount, Boolean loadingError)
- Parameters:
threads- The list of loaded Threads.isLoading- Indicator if the threads are loading.isLoadingMore- Indicator if there is loading of the next page of threads in progress.unseenThreadsCount- The number of threads that we know that exist, but are not (yet) loaded in the list.loadingError- Indicates that the last initial or refresh load failed.
-
-
Method Detail
-
getThreads
final List<Thread> getThreads()
-
getIsLoading
final Boolean getIsLoading()
-
getIsLoadingMore
final Boolean getIsLoadingMore()
-
getUnseenThreadsCount
final Integer getUnseenThreadsCount()
-
getLoadingError
final Boolean getLoadingError()
-
-
-
-