customer-android-kotlin

//core/com.kustomer.core.providers/KusChatProvider/getChatMessagesBeforeTimestamp

getChatMessagesBeforeTimestamp

[androidJvm]
abstract suspend fun getChatMessagesBeforeTimestamp(conversationId: String, timeStamp: Long?, pageSize: Int): KusResult<List<Any>>

Returns paginated list of KusChatMessage&KusSatisfaction before a given messageID

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
timeStamp createdAt time of the message we want messages earlier than
pageSize number of items to be fetched in response