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

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 QueueRequestDto
*/
export interface QueueRequestDto {
/**
* Gets or sets the items to enqueue.
* @type {Array<string>}
* @memberof QueueRequestDto
*/
itemIds?: Array<string>;
/**
*
* @type {GroupQueueMode}
* @memberof QueueRequestDto
*/
mode?: GroupQueueMode;
}
/**
* Check if a given object implements the QueueRequestDto interface.
*/
export function instanceOfQueueRequestDto(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function QueueRequestDtoFromJSON(json: any): QueueRequestDto {
return QueueRequestDtoFromJSONTyped(json, false);
}
export function QueueRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueueRequestDto {
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 QueueRequestDtoToJSON(value?: QueueRequestDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'ItemIds': value.itemIds,
'Mode': GroupQueueModeToJSON(value.mode),
};
}