-
- 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, ChatClient chatClient)Creates a factory instance with the specified parameters. ThreadsViewModelFactory(QueryThreadsRequest query, ChatClient chatClient)
-
Method Summary
-
-
Constructor Detail
-
ThreadsViewModelFactory
ThreadsViewModelFactory(Integer threadLimit, Integer threadReplyLimit, Integer threadParticipantLimit, ChatClient chatClient)
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.chatClient- The ChatClient instance to use for loading threads.
-
ThreadsViewModelFactory
ThreadsViewModelFactory(QueryThreadsRequest query, ChatClient chatClient)
- Parameters:
query- The QueryThreadsRequest used to load threads.chatClient- The ChatClient instance to use for loading threads.
-
-
-
-