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

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

There is a newer version: 1.5.5
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.Boolean
import kotlin.String
import kotlin.collections.List
import kotlin.collections.buildMap
import kotlin.collections.emptyMap
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.api.ConfigurationPageInfo

public class DashboardApi(
	private val api: ApiClient,
) : Api {
	/**
	 * Gets the configuration pages.
	 *
	 * @param enableInMainMenu Whether to enable in the main menu.
	 */
	public suspend fun getConfigurationPages(enableInMainMenu: Boolean? = null):
			Response> {
		val pathParameters = emptyMap()
		val queryParameters = buildMap(1) {
			put("enableInMainMenu", enableInMainMenu)
		}
		val data = null
		val response = api.`get`>("/web/ConfigurationPages", pathParameters,
				queryParameters, data)
		return response
	}

	/**
	 * Gets a dashboard configuration page.
	 *
	 * @param name The name of the page.
	 */
	public suspend fun getDashboardConfigurationPage(name: String? = null): Response {
		val pathParameters = emptyMap()
		val queryParameters = buildMap(1) {
			put("name", name)
		}
		val data = null
		val response = api.`get`("/web/ConfigurationPage", pathParameters, queryParameters, data)
		return response
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy