SessionApi
Functions
Link copied to clipboard
suspend fun addUserToSession(sessionId: String, userId: <Error class: unknown class>): Response<Unit>
Adds an additional user to a session.
Link copied to clipboard
Link copied to clipboard
Get all auth providers.
Link copied to clipboard
Get all password reset providers.
Link copied to clipboard
suspend fun getSessions(controllableByUserId: <Error class: unknown class>? = null, deviceId: String? = null, activeWithinSeconds: Int? = null): Response<List<<Error class: unknown class>>>
Gets a list of sessions.
Link copied to clipboard
suspend fun play(sessionId: String, playCommand: <Error class: unknown class>, itemIds: Collection<<Error class: unknown class>> = emptyList(), startPositionTicks: Long? = null, mediaSourceId: String? = null, audioStreamIndex: Int? = null, subtitleStreamIndex: Int? = null, startIndex: Int? = null): Response<Unit>
Instructs a session to play an item.
Link copied to clipboard
suspend fun postCapabilities(request: <Error class: unknown class> = PostCapabilitiesRequest()): Response<Unit>
suspend fun postCapabilities(id: String? = null, playableMediaTypes: Collection<<Error class: unknown class>>? = emptyList(), supportedCommands: Collection<<Error class: unknown class>>? = emptyList(), supportsMediaControl: Boolean? = false, supportsPersistentIdentifier: Boolean? = true): Response<Unit>
Updates capabilities for a device.
Link copied to clipboard
suspend fun postFullCapabilities(id: String? = null, data: <Error class: unknown class>): Response<Unit>
Updates capabilities for a device.
Link copied to clipboard
suspend fun removeUserFromSession(sessionId: String, userId: <Error class: unknown class>): Response<Unit>
Removes an additional user from a session.
Link copied to clipboard
Reports that a session has ended.
Link copied to clipboard
Reports that a session is viewing an item.
Link copied to clipboard
suspend fun sendFullGeneralCommand(sessionId: String, data: <Error class: unknown class>): Response<Unit>
Issues a full general command to a client.
Link copied to clipboard
suspend fun sendGeneralCommand(sessionId: String, command: <Error class: unknown class>): Response<Unit>
Issues a general command to a client.
Link copied to clipboard
suspend fun sendMessageCommand(sessionId: String, data: <Error class: unknown class>): Response<Unit>
Issues a command to a client to display a message to the user.
Link copied to clipboard
Link copied to clipboard
suspend fun sendSystemCommand(sessionId: String, command: <Error class: unknown class>): Response<Unit>
Issues a system command to a client.