SearchResult

data class SearchResult(val nextBatch: String? = null, val highlights: List<String>? = null, val results: List<EventAndSender>? = null)

Domain class to represent the response of a search request in a room.

Constructors

Link copied to clipboard
constructor(nextBatch: String? = null, highlights: List<String>? = null, results: List<EventAndSender>? = null)

Properties

Link copied to clipboard
val highlights: List<String>? = null

List of words which should be highlighted, useful for stemming which may change the query terms.

Link copied to clipboard
val nextBatch: String? = null

Token that can be used to get the next batch of results, by passing as the next_batch parameter to the next call. If this field is null, there are no more results.

Link copied to clipboard

List of results in the requested order.