
commonMain.org.jellyfin.sdk.api.operations.ChannelsApi.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.Boolean
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.BaseItemDtoQueryResult
import org.jellyfin.sdk.model.api.ChannelFeatures
import org.jellyfin.sdk.model.api.ItemFields
import org.jellyfin.sdk.model.api.ItemFilter
import org.jellyfin.sdk.model.api.SortOrder
public class ChannelsApi(
private val api: ApiClient,
) : Api {
/**
* Get all channel features.
*/
public suspend fun getAllChannelFeatures(): Response> {
val pathParameters = emptyMap()
val queryParameters = emptyMap()
val data = null
val response = api.`get`>("/Channels/Features", pathParameters,
queryParameters, data)
return response
}
/**
* Get channel features.
*
* @param channelId Channel id.
*/
public suspend fun getChannelFeatures(channelId: UUID): Response {
val pathParameters = mutableMapOf()
pathParameters["channelId"] = channelId
val queryParameters = emptyMap()
val data = null
val response = api.`get`("/Channels/{channelId}/Features", pathParameters,
queryParameters, data)
return response
}
/**
* Get channel items.
*
* @param channelId Channel Id.
* @param folderId Optional. Folder Id.
* @param userId Optional. User Id.
* @param startIndex Optional. The record index to start at. All items with a lower index will be
* dropped from the results.
* @param limit Optional. The maximum number of records to return.
* @param sortOrder Optional. Sort Order - Ascending,Descending.
* @param filters Optional. Specify additional filters to apply.
* @param sortBy Optional. Specify one or more sort orders, comma delimited. Options: Album,
* AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount,
* PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
* @param fields Optional. Specify additional fields of information to return in the output.
*/
public suspend fun getChannelItems(
channelId: UUID,
folderId: UUID? = null,
userId: UUID? = null,
startIndex: Int? = null,
limit: Int? = null,
sortOrder: Collection? = emptyList(),
filters: Collection? = emptyList(),
sortBy: Collection? = emptyList(),
fields: Collection? = emptyList(),
): Response {
val pathParameters = mutableMapOf()
pathParameters["channelId"] = channelId
val queryParameters = mutableMapOf()
queryParameters["folderId"] = folderId
queryParameters["userId"] = userId
queryParameters["startIndex"] = startIndex
queryParameters["limit"] = limit
queryParameters["sortOrder"] = sortOrder
queryParameters["filters"] = filters
queryParameters["sortBy"] = sortBy
queryParameters["fields"] = fields
val data = null
val response = api.`get`("/Channels/{channelId}/Items", pathParameters,
queryParameters, data)
return response
}
/**
* Gets available channels.
*
* @param userId User Id to filter by. Use System.Guid.Empty to not filter by user.
* @param startIndex Optional. The record index to start at. All items with a lower index will be
* dropped from the results.
* @param limit Optional. The maximum number of records to return.
* @param supportsLatestItems Optional. Filter by channels that support getting latest items.
* @param supportsMediaDeletion Optional. Filter by channels that support media deletion.
* @param isFavorite Optional. Filter by channels that are favorite.
*/
public suspend fun getChannels(
userId: UUID? = null,
startIndex: Int? = null,
limit: Int? = null,
supportsLatestItems: Boolean? = null,
supportsMediaDeletion: Boolean? = null,
isFavorite: Boolean? = null,
): Response {
val pathParameters = emptyMap()
val queryParameters = mutableMapOf()
queryParameters["userId"] = userId
queryParameters["startIndex"] = startIndex
queryParameters["limit"] = limit
queryParameters["supportsLatestItems"] = supportsLatestItems
queryParameters["supportsMediaDeletion"] = supportsMediaDeletion
queryParameters["isFavorite"] = isFavorite
val data = null
val response = api.`get`("/Channels", pathParameters, queryParameters,
data)
return response
}
/**
* Gets latest channel items.
*
* @param userId Optional. User Id.
* @param startIndex Optional. The record index to start at. All items with a lower index will be
* dropped from the results.
* @param limit Optional. The maximum number of records to return.
* @param filters Optional. Specify additional filters to apply.
* @param fields Optional. Specify additional fields of information to return in the output.
* @param channelIds Optional. Specify one or more channel id's, comma delimited.
*/
public suspend fun getLatestChannelItems(
userId: UUID? = null,
startIndex: Int? = null,
limit: Int? = null,
filters: Collection? = emptyList(),
fields: Collection? = emptyList(),
channelIds: Collection? = emptyList(),
): Response {
val pathParameters = emptyMap()
val queryParameters = mutableMapOf()
queryParameters["userId"] = userId
queryParameters["startIndex"] = startIndex
queryParameters["limit"] = limit
queryParameters["filters"] = filters
queryParameters["fields"] = fields
queryParameters["channelIds"] = channelIds
val data = null
val response = api.`get`("/Channels/Items/Latest", pathParameters,
queryParameters, data)
return response
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy