getExternalConversations

fun getExternalConversations(    context: Context,     withFullData: Boolean = false,     pagingConfig: PagingConfig = getDefaultPageConfig()): Flow<PagingData<STWConversation>>

Call this method to retrieve the external conversations

Parameters

context

The application context

withFullData

True to return full external conversation data (Default)False to return reduced external conversation data.

pagingConfig

Defines the number of items loaded at once from the PagingSource. (default page size is 10 and enablePlaceholders = false).


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

Call this suspended method to retrieve list of external conversations

Return

list of external conversations STWConversation

Parameters

context

The application context

withFullData

True to return full company conversation data (Default)False to return reduced company conversation data as name, type , call in progress ... , this case does not contains for example the call status for Late Call Entry feature or if it is large conversation or not and the admin initiator of the conversation.

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