getConversations

fun getConversations(context: Context, pagingConfig: PagingConfig = getDefaultPageConfig()): Flow<PagingData<STWConversation>>

Get the list of all conversations (Company conversations and external conversation).

Parameters

context

The application context


suspend fun getConversations(    context: Context,     @IntRange(from = 0) from: Int,     @IntRange(from = 1) pageSize: Int,     ascOrder: Boolean = false): List<STWConversation>?

Call this method to retrieve list of conversations by page

Return

list of conversations STWConversation

Parameters

context

The application context

from

The offset of the first conversation starting from it will return conversations list based on pageSize. Value should be >= 0

pageSize

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

ascOrder

false Whether the list is ordered ascending or descending