conversationEntriesFlow

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

Gets the ConversationEntry objects related to this conversation.

Return

A Flow of List. Result.Success.data returns the List.

Parameters

limit

The maximum number of ConversationEntry objects 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.