81 lines
2.0 KiB
TypeScript
81 lines
2.0 KiB
TypeScript
|
/* 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 { GroupQueueMode } from './GroupQueueMode';
|
||
|
import {
|
||
|
GroupQueueModeFromJSON,
|
||
|
GroupQueueModeFromJSONTyped,
|
||
|
GroupQueueModeToJSON,
|
||
|
} from './GroupQueueMode';
|
||
|
|
||
|
/**
|
||
|
* Class QueueRequestDto.
|
||
|
* @export
|
||
|
* @interface SyncPlayQueueRequest
|
||
|
*/
|
||
|
export interface SyncPlayQueueRequest {
|
||
|
/**
|
||
|
* Gets or sets the items to enqueue.
|
||
|
* @type {Array<string>}
|
||
|
* @memberof SyncPlayQueueRequest
|
||
|
*/
|
||
|
itemIds?: Array<string>;
|
||
|
/**
|
||
|
*
|
||
|
* @type {GroupQueueMode}
|
||
|
* @memberof SyncPlayQueueRequest
|
||
|
*/
|
||
|
mode?: GroupQueueMode;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the SyncPlayQueueRequest interface.
|
||
|
*/
|
||
|
export function instanceOfSyncPlayQueueRequest(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function SyncPlayQueueRequestFromJSON(json: any): SyncPlayQueueRequest {
|
||
|
return SyncPlayQueueRequestFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function SyncPlayQueueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncPlayQueueRequest {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'itemIds': !exists(json, 'ItemIds') ? undefined : json['ItemIds'],
|
||
|
'mode': !exists(json, 'Mode') ? undefined : GroupQueueModeFromJSON(json['Mode']),
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function SyncPlayQueueRequestToJSON(value?: SyncPlayQueueRequest | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'ItemIds': value.itemIds,
|
||
|
'Mode': GroupQueueModeToJSON(value.mode),
|
||
|
};
|
||
|
}
|
||
|
|