/* tslint:disable */ /* eslint-disable */ /** * Jellyfin API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 10.8.9 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import type { PlayMethod } from './PlayMethod'; import { PlayMethodFromJSON, PlayMethodFromJSONTyped, PlayMethodToJSON, } from './PlayMethod'; import type { PlaybackProgressInfoItem } from './PlaybackProgressInfoItem'; import { PlaybackProgressInfoItemFromJSON, PlaybackProgressInfoItemFromJSONTyped, PlaybackProgressInfoItemToJSON, } from './PlaybackProgressInfoItem'; import type { QueueItem } from './QueueItem'; import { QueueItemFromJSON, QueueItemFromJSONTyped, QueueItemToJSON, } from './QueueItem'; import type { RepeatMode } from './RepeatMode'; import { RepeatModeFromJSON, RepeatModeFromJSONTyped, RepeatModeToJSON, } from './RepeatMode'; /** * Class PlaybackProgressInfo. * @export * @interface ReportPlaybackProgressRequest */ export interface ReportPlaybackProgressRequest { /** * Gets or sets a value indicating whether this instance can seek. * @type {boolean} * @memberof ReportPlaybackProgressRequest */ canSeek?: boolean; /** * * @type {PlaybackProgressInfoItem} * @memberof ReportPlaybackProgressRequest */ item?: PlaybackProgressInfoItem | null; /** * Gets or sets the item identifier. * @type {string} * @memberof ReportPlaybackProgressRequest */ itemId?: string; /** * Gets or sets the session id. * @type {string} * @memberof ReportPlaybackProgressRequest */ sessionId?: string | null; /** * Gets or sets the media version identifier. * @type {string} * @memberof ReportPlaybackProgressRequest */ mediaSourceId?: string | null; /** * Gets or sets the index of the audio stream. * @type {number} * @memberof ReportPlaybackProgressRequest */ audioStreamIndex?: number | null; /** * Gets or sets the index of the subtitle stream. * @type {number} * @memberof ReportPlaybackProgressRequest */ subtitleStreamIndex?: number | null; /** * Gets or sets a value indicating whether this instance is paused. * @type {boolean} * @memberof ReportPlaybackProgressRequest */ isPaused?: boolean; /** * Gets or sets a value indicating whether this instance is muted. * @type {boolean} * @memberof ReportPlaybackProgressRequest */ isMuted?: boolean; /** * Gets or sets the position ticks. * @type {number} * @memberof ReportPlaybackProgressRequest */ positionTicks?: number | null; /** * * @type {number} * @memberof ReportPlaybackProgressRequest */ playbackStartTimeTicks?: number | null; /** * Gets or sets the volume level. * @type {number} * @memberof ReportPlaybackProgressRequest */ volumeLevel?: number | null; /** * * @type {number} * @memberof ReportPlaybackProgressRequest */ brightness?: number | null; /** * * @type {string} * @memberof ReportPlaybackProgressRequest */ aspectRatio?: string | null; /** * * @type {PlayMethod} * @memberof ReportPlaybackProgressRequest */ playMethod?: PlayMethod; /** * Gets or sets the live stream identifier. * @type {string} * @memberof ReportPlaybackProgressRequest */ liveStreamId?: string | null; /** * Gets or sets the play session identifier. * @type {string} * @memberof ReportPlaybackProgressRequest */ playSessionId?: string | null; /** * * @type {RepeatMode} * @memberof ReportPlaybackProgressRequest */ repeatMode?: RepeatMode; /** * * @type {Array} * @memberof ReportPlaybackProgressRequest */ nowPlayingQueue?: Array | null; /** * * @type {string} * @memberof ReportPlaybackProgressRequest */ playlistItemId?: string | null; } /** * Check if a given object implements the ReportPlaybackProgressRequest interface. */ export function instanceOfReportPlaybackProgressRequest(value: object): boolean { let isInstance = true; return isInstance; } export function ReportPlaybackProgressRequestFromJSON(json: any): ReportPlaybackProgressRequest { return ReportPlaybackProgressRequestFromJSONTyped(json, false); } export function ReportPlaybackProgressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportPlaybackProgressRequest { if ((json === undefined) || (json === null)) { return json; } return { 'canSeek': !exists(json, 'CanSeek') ? undefined : json['CanSeek'], 'item': !exists(json, 'Item') ? undefined : PlaybackProgressInfoItemFromJSON(json['Item']), 'itemId': !exists(json, 'ItemId') ? undefined : json['ItemId'], 'sessionId': !exists(json, 'SessionId') ? undefined : json['SessionId'], 'mediaSourceId': !exists(json, 'MediaSourceId') ? undefined : json['MediaSourceId'], 'audioStreamIndex': !exists(json, 'AudioStreamIndex') ? undefined : json['AudioStreamIndex'], 'subtitleStreamIndex': !exists(json, 'SubtitleStreamIndex') ? undefined : json['SubtitleStreamIndex'], 'isPaused': !exists(json, 'IsPaused') ? undefined : json['IsPaused'], 'isMuted': !exists(json, 'IsMuted') ? undefined : json['IsMuted'], 'positionTicks': !exists(json, 'PositionTicks') ? undefined : json['PositionTicks'], 'playbackStartTimeTicks': !exists(json, 'PlaybackStartTimeTicks') ? undefined : json['PlaybackStartTimeTicks'], 'volumeLevel': !exists(json, 'VolumeLevel') ? undefined : json['VolumeLevel'], 'brightness': !exists(json, 'Brightness') ? undefined : json['Brightness'], 'aspectRatio': !exists(json, 'AspectRatio') ? undefined : json['AspectRatio'], 'playMethod': !exists(json, 'PlayMethod') ? undefined : PlayMethodFromJSON(json['PlayMethod']), 'liveStreamId': !exists(json, 'LiveStreamId') ? undefined : json['LiveStreamId'], 'playSessionId': !exists(json, 'PlaySessionId') ? undefined : json['PlaySessionId'], 'repeatMode': !exists(json, 'RepeatMode') ? undefined : RepeatModeFromJSON(json['RepeatMode']), 'nowPlayingQueue': !exists(json, 'NowPlayingQueue') ? undefined : (json['NowPlayingQueue'] === null ? null : (json['NowPlayingQueue'] as Array).map(QueueItemFromJSON)), 'playlistItemId': !exists(json, 'PlaylistItemId') ? undefined : json['PlaylistItemId'], }; } export function ReportPlaybackProgressRequestToJSON(value?: ReportPlaybackProgressRequest | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'CanSeek': value.canSeek, 'Item': PlaybackProgressInfoItemToJSON(value.item), 'ItemId': value.itemId, 'SessionId': value.sessionId, 'MediaSourceId': value.mediaSourceId, 'AudioStreamIndex': value.audioStreamIndex, 'SubtitleStreamIndex': value.subtitleStreamIndex, 'IsPaused': value.isPaused, 'IsMuted': value.isMuted, 'PositionTicks': value.positionTicks, 'PlaybackStartTimeTicks': value.playbackStartTimeTicks, 'VolumeLevel': value.volumeLevel, 'Brightness': value.brightness, 'AspectRatio': value.aspectRatio, 'PlayMethod': PlayMethodToJSON(value.playMethod), 'LiveStreamId': value.liveStreamId, 'PlaySessionId': value.playSessionId, 'RepeatMode': RepeatModeToJSON(value.repeatMode), 'NowPlayingQueue': value.nowPlayingQueue === undefined ? undefined : (value.nowPlayingQueue === null ? null : (value.nowPlayingQueue as Array).map(QueueItemToJSON)), 'PlaylistItemId': value.playlistItemId, }; }