customer-android-kotlin

//core/com.kustomer.core.providers/KusChatProvider/fetchChatMessages

fetchChatMessages

[androidJvm]
abstract suspend fun fetchChatMessages(conversationId: String, page: Int, pageSize: Int, startTimeToken: Long? = null): KusResult<List<Any>>

Returns list of KusChatMessage&KusSatisfaction object if present for a conversation

Note: This is a suspend function and should be called from Kotlin Coroutines

Return

List of KusChatMessage&KusSatisfaction object if present for a conversation

See also

androidJvm

   
com.kustomer.core.models.chat.KusSatisfaction  

Parameters

androidJvm

   
conversationId of the conversation
page current page number
pageSize number of items to be fetched in response
startTimeToken delimiting time to fetch messages that are older than and up to that start timetoken value