ThreadsViewModelFactory

constructor(query: QueryThreadsRequest, chatClient: ChatClient = ChatClient.instance())

Parameters

query

The QueryThreadsRequest used to load threads.

chatClient

The ChatClient instance to use for loading threads.


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())

Deprecated

Use ThreadsViewModelFactory(QueryThreadsRequest) instead, to provide more query options such as filtering and sorting.

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.

See also