ExpoFpSearchModel

@Serializable
data class ExpoFpSearchModel(val score: Double, val item: ExpoFpSearchItemType) : Comparable<ExpoFpSearchModel>

Search model with info about an item. The smaller the score, the more accurate the result.

Constructors

Link copied to clipboard
constructor(score: Double, item: ExpoFpSearchItemType)

Properties

Link copied to clipboard

Item external ID.

Link copied to clipboard
val id: String

Item ID.

Link copied to clipboard
@SerialName(value = "item")
val item: ExpoFpSearchItemType

Type of the item.

Link copied to clipboard

Item name.

Link copied to clipboard

Item raw type inside item property.

Link copied to clipboard
@SerialName(value = "score")
val score: Double

Score after search — the lower, the better.

Functions

Link copied to clipboard
open operator override fun compareTo(other: ExpoFpSearchModel): Int

Sorting: by score ascending, then by name case-insensitive.