jellyfin-discord-bot/server/jellyfin/models/SyncPlaySetNewQueueRequest.ts

82 lines
2.4 KiB
TypeScript
Raw Permalink Normal View History

2023-05-04 23:34:53 +02:00
/* 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';
/**
* Class PlayRequestDto.
* @export
* @interface SyncPlaySetNewQueueRequest
*/
export interface SyncPlaySetNewQueueRequest {
/**
* Gets or sets the playing queue.
* @type {Array<string>}
* @memberof SyncPlaySetNewQueueRequest
*/
playingQueue?: Array<string>;
/**
* Gets or sets the position of the playing item in the queue.
* @type {number}
* @memberof SyncPlaySetNewQueueRequest
*/
playingItemPosition?: number;
/**
* Gets or sets the start position ticks.
* @type {number}
* @memberof SyncPlaySetNewQueueRequest
*/
startPositionTicks?: number;
}
/**
* Check if a given object implements the SyncPlaySetNewQueueRequest interface.
*/
export function instanceOfSyncPlaySetNewQueueRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function SyncPlaySetNewQueueRequestFromJSON(json: any): SyncPlaySetNewQueueRequest {
return SyncPlaySetNewQueueRequestFromJSONTyped(json, false);
}
export function SyncPlaySetNewQueueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncPlaySetNewQueueRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'playingQueue': !exists(json, 'PlayingQueue') ? undefined : json['PlayingQueue'],
'playingItemPosition': !exists(json, 'PlayingItemPosition') ? undefined : json['PlayingItemPosition'],
'startPositionTicks': !exists(json, 'StartPositionTicks') ? undefined : json['StartPositionTicks'],
};
}
export function SyncPlaySetNewQueueRequestToJSON(value?: SyncPlaySetNewQueueRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'PlayingQueue': value.playingQueue,
'PlayingItemPosition': value.playingItemPosition,
'StartPositionTicks': value.startPositionTicks,
};
}