All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.org.jellyfin.sdk.api.operations.DlnaApi.kt Maven / Gradle / Ivy

There is a newer version: 1.6.3
Show newest version
// !!        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.String
import kotlin.Unit
import kotlin.collections.List
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.api.client.extensions.delete
import org.jellyfin.sdk.api.client.extensions.post
import org.jellyfin.sdk.model.api.DeviceProfile
import org.jellyfin.sdk.model.api.DeviceProfileInfo

public class DlnaApi(
	private val api: ApiClient,
) : Api {
	/**
	 * Creates a profile.
	 */
	public suspend fun createProfile(`data`: DeviceProfile? = null): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/Dlna/Profiles", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Deletes a profile.
	 *
	 * @param profileId Profile id.
	 */
	public suspend fun deleteProfile(profileId: String): Response {
		val pathParameters = mutableMapOf()
		pathParameters["profileId"] = profileId
		val queryParameters = emptyMap()
		val data = null
		val response = api.delete("/Dlna/Profiles/{profileId}", pathParameters, queryParameters,
				data)
		return response
	}

	/**
	 * Gets the default profile.
	 */
	public suspend fun getDefaultProfile(): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val data = null
		val response = api.`get`("/Dlna/Profiles/Default", pathParameters, queryParameters,
				data)
		return response
	}

	/**
	 * Gets a single profile.
	 *
	 * @param profileId Profile Id.
	 */
	public suspend fun getProfile(profileId: String): Response {
		val pathParameters = mutableMapOf()
		pathParameters["profileId"] = profileId
		val queryParameters = emptyMap()
		val data = null
		val response = api.`get`("/Dlna/Profiles/{profileId}", pathParameters,
				queryParameters, data)
		return response
	}

	/**
	 * Get profile infos.
	 */
	public suspend fun getProfileInfos(): Response> {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val data = null
		val response = api.`get`>("/Dlna/ProfileInfos", pathParameters,
				queryParameters, data)
		return response
	}

	/**
	 * Updates a profile.
	 *
	 * @param profileId Profile id.
	 */
	public suspend fun updateProfile(profileId: String, `data`: DeviceProfile? = null):
			Response {
		val pathParameters = mutableMapOf()
		pathParameters["profileId"] = profileId
		val queryParameters = emptyMap()
		val response = api.post("/Dlna/Profiles/{profileId}", pathParameters, queryParameters, data)
		return response
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy