Search

@Serializable
data class Search(val searchRequestId: String, val query: String, val misspellResult: String? = null, val misspellOriginal: String? = null, val isCorrect: Boolean? = null, val misspellCorrected: Boolean? = null, val best: Best? = null, val artists: SearchResult<Artist>? = null, val albums: SearchResult<Album>? = null, val playlist: SearchResult<Playlist>? = null, val tracks: SearchResult<TrackData>? = null, val videos: SearchResult<Video>? = null, val users: SearchResult<User>? = null, val podcasts: SearchResult<Album>? = null, val podcastsEpisodes: SearchResult<TrackData>? = null, val clips: SearchResult<Clip>? = null)(source)

Constructors

Link copied to clipboard
constructor(searchRequestId: String, query: String, misspellResult: String? = null, misspellOriginal: String? = null, isCorrect: Boolean? = null, misspellCorrected: Boolean? = null, best: Best? = null, artists: SearchResult<Artist>? = null, albums: SearchResult<Album>? = null, playlist: SearchResult<Playlist>? = null, tracks: SearchResult<TrackData>? = null, videos: SearchResult<Video>? = null, users: SearchResult<User>? = null, podcasts: SearchResult<Album>? = null, podcastsEpisodes: SearchResult<TrackData>? = null, clips: SearchResult<Clip>? = null)

Properties

Link copied to clipboard
val albums: SearchResult<Album>? = null
Link copied to clipboard
Link copied to clipboard
val best: Best? = null
Link copied to clipboard
val clips: SearchResult<Clip>? = null
Link copied to clipboard
@SerialName(value = "nocorrect")
val isCorrect: Boolean? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val misspellResult: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "text")
val query: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val users: SearchResult<User>? = null
Link copied to clipboard
val videos: SearchResult<Video>? = null

Functions

Link copied to clipboard
suspend fun getPage(page: Int): Search
Link copied to clipboard
suspend fun nextPage(): Search
Link copied to clipboard
suspend fun prevPage(): Search