ThreadsViewModelFactory
class ThreadsViewModelFactory(query: QueryThreadsRequest, chatClient: ChatClient = ChatClient.instance()) : ViewModelProvider.Factory
A ViewModel factory for creating a ThreadListViewModel.
Parameters
query
The QueryThreadsRequest used to load threads.
chatClient
The ChatClient instance to use for loading threads.
See also
Constructors
Link copied to clipboard
constructor(threadLimit: Int = ThreadListController.DEFAULT_THREAD_LIMIT, threadReplyLimit: Int = ThreadListController.DEFAULT_THREAD_REPLY_LIMIT, threadParticipantLimit: Int = ThreadListController.DEFAULT_THREAD_PARTICIPANT_LIMIT, chatClient: ChatClient = ChatClient.instance())
Creates a factory instance with the specified parameters.