PlayStateApi

class PlayStateApi(api: ApiClient) : Api

Constructors

Link copied to clipboard
constructor(api: ApiClient)

Functions

Link copied to clipboard
suspend fun markPlayedItem(itemId: ERROR CLASS: Symbol not found for UUID, userId: ERROR CLASS: Symbol not found for UUID?? = null, datePlayed: ERROR CLASS: Symbol not found for DateTime?? = null): Response<ERROR CLASS: Symbol not found for UserItemDataDto>

Marks an item as played for user.

Link copied to clipboard
suspend fun markUnplayedItem(itemId: ERROR CLASS: Symbol not found for UUID, userId: ERROR CLASS: Symbol not found for UUID?? = null): Response<ERROR CLASS: Symbol not found for UserItemDataDto>

Marks an item as unplayed for user.

Link copied to clipboard
suspend fun onPlaybackProgress(request: ERROR CLASS: Symbol not found for OnPlaybackProgressRequest): Response<Unit>
suspend fun onPlaybackProgress(itemId: ERROR CLASS: Symbol not found for UUID, mediaSourceId: String? = null, positionTicks: Long? = null, audioStreamIndex: Int? = null, subtitleStreamIndex: Int? = null, volumeLevel: Int? = null, playMethod: ERROR CLASS: Symbol not found for PlayMethod?? = null, liveStreamId: String? = null, playSessionId: String? = null, repeatMode: ERROR CLASS: Symbol not found for RepeatMode?? = null, isPaused: Boolean? = false, isMuted: Boolean? = false): Response<Unit>

Reports a session's playback progress.

Link copied to clipboard
suspend fun onPlaybackStart(request: ERROR CLASS: Symbol not found for OnPlaybackStartRequest): Response<Unit>
suspend fun onPlaybackStart(itemId: ERROR CLASS: Symbol not found for UUID, mediaSourceId: String? = null, audioStreamIndex: Int? = null, subtitleStreamIndex: Int? = null, playMethod: ERROR CLASS: Symbol not found for PlayMethod?? = null, liveStreamId: String? = null, playSessionId: String? = null, canSeek: Boolean? = false): Response<Unit>

Reports that a session has begun playing an item.

Link copied to clipboard
suspend fun onPlaybackStopped(request: ERROR CLASS: Symbol not found for OnPlaybackStoppedRequest): Response<Unit>
suspend fun onPlaybackStopped(itemId: ERROR CLASS: Symbol not found for UUID, mediaSourceId: String? = null, nextMediaType: String? = null, positionTicks: Long? = null, liveStreamId: String? = null, playSessionId: String? = null): Response<Unit>

Reports that a session has stopped playing an item.

Link copied to clipboard
suspend fun pingPlaybackSession(playSessionId: String): Response<Unit>

Pings a playback session.

Link copied to clipboard
suspend fun reportPlaybackProgress(data: ERROR CLASS: Symbol not found for PlaybackProgressInfo?? = null): Response<Unit>

Reports playback progress within a session.

Link copied to clipboard
suspend fun reportPlaybackStart(data: ERROR CLASS: Symbol not found for PlaybackStartInfo?? = null): Response<Unit>

Reports playback has started within a session.

Link copied to clipboard
suspend fun reportPlaybackStopped(data: ERROR CLASS: Symbol not found for PlaybackStopInfo?? = null): Response<Unit>

Reports playback has stopped within a session.