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

commonMain.org.jellyfin.sdk.api.operations.SyncPlayApi.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.String
import kotlin.Unit
import kotlin.collections.List
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.api.client.extensions.post
import org.jellyfin.sdk.model.api.BufferRequestDto
import org.jellyfin.sdk.model.api.GroupInfoDto
import org.jellyfin.sdk.model.api.IgnoreWaitRequestDto
import org.jellyfin.sdk.model.api.JoinGroupRequestDto
import org.jellyfin.sdk.model.api.MovePlaylistItemRequestDto
import org.jellyfin.sdk.model.api.NewGroupRequestDto
import org.jellyfin.sdk.model.api.NextItemRequestDto
import org.jellyfin.sdk.model.api.PingRequestDto
import org.jellyfin.sdk.model.api.PlayRequestDto
import org.jellyfin.sdk.model.api.PreviousItemRequestDto
import org.jellyfin.sdk.model.api.QueueRequestDto
import org.jellyfin.sdk.model.api.ReadyRequestDto
import org.jellyfin.sdk.model.api.RemoveFromPlaylistRequestDto
import org.jellyfin.sdk.model.api.SeekRequestDto
import org.jellyfin.sdk.model.api.SetPlaylistItemRequestDto
import org.jellyfin.sdk.model.api.SetRepeatModeRequestDto
import org.jellyfin.sdk.model.api.SetShuffleModeRequestDto

public class SyncPlayApi(
	private val api: ApiClient,
) : Api {
	/**
	 * Notify SyncPlay group that member is buffering.
	 */
	public suspend fun syncPlayBuffering(`data`: BufferRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/Buffering", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Create a new SyncPlay group.
	 */
	public suspend fun syncPlayCreateGroup(`data`: NewGroupRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/New", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Gets all SyncPlay groups.
	 */
	public suspend fun syncPlayGetGroups(): Response> {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val data = null
		val response = api.`get`>("/SyncPlay/List", pathParameters, queryParameters,
				data)
		return response
	}

	/**
	 * Join an existing SyncPlay group.
	 */
	public suspend fun syncPlayJoinGroup(`data`: JoinGroupRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/Join", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Leave the joined SyncPlay group.
	 */
	public suspend fun syncPlayLeaveGroup(): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val data = null
		val response = api.post("/SyncPlay/Leave", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request to move an item in the playlist in SyncPlay group.
	 */
	public suspend fun syncPlayMovePlaylistItem(`data`: MovePlaylistItemRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/MovePlaylistItem", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request next item in SyncPlay group.
	 */
	public suspend fun syncPlayNextItem(`data`: NextItemRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/NextItem", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request pause in SyncPlay group.
	 */
	public suspend fun syncPlayPause(): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val data = null
		val response = api.post("/SyncPlay/Pause", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Update session ping.
	 */
	public suspend fun syncPlayPing(`data`: PingRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/Ping", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request previous item in SyncPlay group.
	 */
	public suspend fun syncPlayPreviousItem(`data`: PreviousItemRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/PreviousItem", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request to queue items to the playlist of a SyncPlay group.
	 */
	public suspend fun syncPlayQueue(`data`: QueueRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/Queue", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Notify SyncPlay group that member is ready for playback.
	 */
	public suspend fun syncPlayReady(`data`: ReadyRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/Ready", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request to remove items from the playlist in SyncPlay group.
	 */
	public suspend fun syncPlayRemoveFromPlaylist(`data`: RemoveFromPlaylistRequestDto):
			Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/RemoveFromPlaylist", pathParameters, queryParameters,
				data)
		return response
	}

	/**
	 * Request seek in SyncPlay group.
	 */
	public suspend fun syncPlaySeek(`data`: SeekRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/Seek", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request SyncPlay group to ignore member during group-wait.
	 */
	public suspend fun syncPlaySetIgnoreWait(`data`: IgnoreWaitRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/SetIgnoreWait", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request to set new playlist in SyncPlay group.
	 */
	public suspend fun syncPlaySetNewQueue(`data`: PlayRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/SetNewQueue", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request to change playlist item in SyncPlay group.
	 */
	public suspend fun syncPlaySetPlaylistItem(`data`: SetPlaylistItemRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/SetPlaylistItem", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request to set repeat mode in SyncPlay group.
	 */
	public suspend fun syncPlaySetRepeatMode(`data`: SetRepeatModeRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/SetRepeatMode", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request to set shuffle mode in SyncPlay group.
	 */
	public suspend fun syncPlaySetShuffleMode(`data`: SetShuffleModeRequestDto): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val response = api.post("/SyncPlay/SetShuffleMode", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request stop in SyncPlay group.
	 */
	public suspend fun syncPlayStop(): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val data = null
		val response = api.post("/SyncPlay/Stop", pathParameters, queryParameters, data)
		return response
	}

	/**
	 * Request unpause in SyncPlay group.
	 */
	public suspend fun syncPlayUnpause(): Response {
		val pathParameters = emptyMap()
		val queryParameters = emptyMap()
		val data = null
		val response = api.post("/SyncPlay/Unpause", pathParameters, queryParameters, data)
		return response
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy