conversationEntries

abstract suspend fun conversationEntries(limit: Int = 100, timestamp: Long? = null, direction: QueryDirection = QueryDirection.Descending, forceRefresh: Boolean = false): Result<List<ConversationEntry>>

Gets the ConversationEntrys scoped to this conversation.

Return

A List of ConversationEntry objects. Result.Success.data returns the List.

Parameters

limit

The maximum number of ConversationEntry to fetch. Default is 100.

timestamp

A timestamp to use as a point of comparison for conversation entry queries. A null value will resolve to an appropriate comparison point given the direction. When the direction is QueryDirection.Descending the null timestamp will be resolved to Long.MAX_VALUE. When the direction is QueryDirection.Ascending the null timestamp will be resolved to 0. Default value is null.

direction

The direction QueryDirection of the query.

forceRefresh

Forces the requested data to be refreshed over the network when set to true. Otherwise, the requested data is fetched from the local cache and only refreshed over the network if no results are found locally. Default value is false.