getCompanyConversations

open fun getCompanyConversations(@NonNull context: Context): List<ThreadItem>

Call this method to retrieve all company conversations from local Database.

A company conversation means a conversation initiated with users and/or groups belong to your company.

This method should be executed in a worker thread since it contains a lot of operation that can exceed 5sec or block the UI thread.

Return

Conversation list or null

See also

Parameters

context

The application context


open fun getCompanyConversations(    @NonNull context: Context,     @IntRange(from = 0) startingFrom: Int,     @IntRange(from = 1) numberOfConversation: Int): List<ThreadItem>

Call this method to retrieve all company conversations from local Database.

A company conversation means a conversation initiated with users and/or groups belong to your company.

This method should be executed in a worker thread since it contains a lot of operation that can exceed 5sec or block the UI thread.

Return

Conversation list or null

See also

Parameters

context

The application context

startingFrom

The position of the conversation from where starting the load of conversations. The value must be positive. Put 0 to start loading from latest conversation.

numberOfConversation

The max number of conversation record to be retrieved, 0 will return nothing. Value should be >= 1