get Conversations
fun getConversations(context: Context, pagingConfig: PagingConfig = getDefaultPageConfig()): Flow<PagingData<STWConversation>>
Content copied to clipboard
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>?
Content copied to clipboard
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
page Size
The max number of conversation record to be retrieved, 0 will return nothing. Value should be >= 1
asc Order
false Whether the list is ordered ascending or descending