-
- All Implemented Interfaces:
-
androidx.lifecycle.ViewModelProvider.Factory
public final class ThreadsViewModelFactory implements ViewModelProvider.Factory
A ViewModel factory for creating a ThreadListViewModel.
-
-
Constructor Summary
Constructors Constructor Description ThreadsViewModelFactory(Integer threadLimit, Integer threadReplyLimit, Integer threadParticipantLimit)Creates a factory instance with the specified parameters. ThreadsViewModelFactory(QueryThreadsRequest query)
-
Method Summary
-
-
Constructor Detail
-
ThreadsViewModelFactory
ThreadsViewModelFactory(Integer threadLimit, Integer threadReplyLimit, Integer threadParticipantLimit)
Creates a factory instance with the specified parameters.- Parameters:
threadLimit- The number of threads to load per page.threadReplyLimit- The number of replies per thread to load.threadParticipantLimit- The number of participants per thread to load.
-
ThreadsViewModelFactory
ThreadsViewModelFactory(QueryThreadsRequest query)
- Parameters:
query- The QueryThreadsRequest used to load threads.
-
-
-
-