-
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 IntegerunseenThreadsCount
-
Constructor Summary
Constructors Constructor Description ThreadListState(List<Thread> threads, Boolean isLoading, Boolean isLoadingMore, Integer unseenThreadsCount)
-
Method Summary
Modifier and Type Method Description final List<Thread>getThreads()final BooleangetIsLoading()final BooleangetIsLoadingMore()final IntegergetUnseenThreadsCount()-
-
Constructor Detail
-
ThreadListState
ThreadListState(List<Thread> threads, Boolean isLoading, Boolean isLoadingMore, Integer unseenThreadsCount)
- 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.
-
-
Method Detail
-
getThreads
final List<Thread> getThreads()
-
getIsLoading
final Boolean getIsLoading()
-
getIsLoadingMore
final Boolean getIsLoadingMore()
-
getUnseenThreadsCount
final Integer getUnseenThreadsCount()
-
-
-
-