jellyfin-discord-bot/server/jellyfin/models/SyncPlaySetPlaylistItemRequ...

66 lines
1.8 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';
/**
* Class SetPlaylistItemRequestDto.
* @export
* @interface SyncPlaySetPlaylistItemRequest
*/
export interface SyncPlaySetPlaylistItemRequest {
/**
* Gets or sets the playlist identifier of the playing item.
* @type {string}
* @memberof SyncPlaySetPlaylistItemRequest
*/
playlistItemId?: string;
}
/**
* Check if a given object implements the SyncPlaySetPlaylistItemRequest interface.
*/
export function instanceOfSyncPlaySetPlaylistItemRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function SyncPlaySetPlaylistItemRequestFromJSON(json: any): SyncPlaySetPlaylistItemRequest {
return SyncPlaySetPlaylistItemRequestFromJSONTyped(json, false);
}
export function SyncPlaySetPlaylistItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncPlaySetPlaylistItemRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'playlistItemId': !exists(json, 'PlaylistItemId') ? undefined : json['PlaylistItemId'],
};
}
export function SyncPlaySetPlaylistItemRequestToJSON(value?: SyncPlaySetPlaylistItemRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'PlaylistItemId': value.playlistItemId,
};
}