
commonMain.org.jellyfin.sdk.api.operations.MoviesApi.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jellyfin-api Show documentation
Show all versions of jellyfin-api Show documentation
Official Kotlin/Java SDK for Jellyfin. org.jellyfin.sdk:jellyfin-api
// !! 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.Int
import kotlin.String
import kotlin.collections.Collection
import kotlin.collections.List
import kotlin.collections.emptyList
import kotlin.collections.emptyMap
import kotlin.collections.mutableMapOf
import org.jellyfin.sdk.api.client.ApiClient
import org.jellyfin.sdk.api.client.Response
import org.jellyfin.sdk.api.client.extensions.`get`
import org.jellyfin.sdk.model.UUID
import org.jellyfin.sdk.model.api.ItemFields
import org.jellyfin.sdk.model.api.RecommendationDto
public class MoviesApi(
private val api: ApiClient,
) : Api {
/**
* Gets movie recommendations.
*
* @param userId Optional. Filter by user id, and attach user data.
* @param parentId Specify this to localize the search to a specific item or folder. Omit to use
* the root.
* @param fields Optional. The fields to return.
* @param categoryLimit The max number of categories to return.
* @param itemLimit The max number of items to return per category.
*/
public suspend fun getMovieRecommendations(
userId: UUID? = null,
parentId: UUID? = null,
fields: Collection? = emptyList(),
categoryLimit: Int? = 5,
itemLimit: Int? = 8,
): Response> {
val pathParameters = emptyMap()
val queryParameters = mutableMapOf()
queryParameters["userId"] = userId
queryParameters["parentId"] = parentId
queryParameters["fields"] = fields
queryParameters["categoryLimit"] = categoryLimit
queryParameters["itemLimit"] = itemLimit
val data = null
val response = api.`get`>("/Movies/Recommendations", pathParameters,
queryParameters, data)
return response
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy