
commonMain.org.jellyfin.sdk.api.operations.SuggestionsApi.kt Maven / Gradle / Ivy
// !! WARNING
// !! DO NOT EDIT THIS FILE
//
// This file is generated by the openapi-generator module and is not meant for manual changes.
// Please read the README.md file in the openapi-generator module for additional information.
package org.jellyfin.sdk.api.operations
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.collections.Collection
import kotlin.collections.emptyList
import kotlin.collections.mutableMapOf
import org.jellyfin.sdk.api.client.ApiClient
import org.jellyfin.sdk.api.client.Response
import org.jellyfin.sdk.api.client.exception.MissingUserIdException
import org.jellyfin.sdk.api.client.extensions.`get`
import org.jellyfin.sdk.model.UUID
import org.jellyfin.sdk.model.api.BaseItemDtoQueryResult
import org.jellyfin.sdk.model.api.BaseItemKind
public class SuggestionsApi(
private val api: ApiClient,
) : Api {
/**
* Gets suggestions.
*
* @param userId The user id.
* @param mediaType The media types.
* @param type The type.
* @param startIndex Optional. The start index.
* @param limit Optional. The limit.
* @param enableTotalRecordCount Whether to enable the total record count.
*/
public suspend fun getSuggestions(
userId: UUID = api.userId ?: throw MissingUserIdException(),
mediaType: Collection? = emptyList(),
type: Collection? = emptyList(),
startIndex: Int? = null,
limit: Int? = null,
enableTotalRecordCount: Boolean? = false,
): Response {
val pathParameters = mutableMapOf()
pathParameters["userId"] = userId
val queryParameters = mutableMapOf()
queryParameters["mediaType"] = mediaType
queryParameters["type"] = type
queryParameters["startIndex"] = startIndex
queryParameters["limit"] = limit
queryParameters["enableTotalRecordCount"] = enableTotalRecordCount
val data = null
val response = api.`get`("/Users/{userId}/Suggestions", pathParameters,
queryParameters, data)
return response
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy