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

82 lines
2.5 KiB
TypeScript
Raw 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 RemoveFromPlaylistRequestDto.
* @export
* @interface RemoveFromPlaylistRequestDto
*/
export interface RemoveFromPlaylistRequestDto {
/**
* Gets or sets the playlist identifiers ot the items. Ignored when clearing the playlist.
* @type {Array<string>}
* @memberof RemoveFromPlaylistRequestDto
*/
playlistItemIds?: Array<string>;
/**
* Gets or sets a value indicating whether the entire playlist should be cleared.
* @type {boolean}
* @memberof RemoveFromPlaylistRequestDto
*/
clearPlaylist?: boolean;
/**
* Gets or sets a value indicating whether the playing item should be removed as well. Used only when clearing the playlist.
* @type {boolean}
* @memberof RemoveFromPlaylistRequestDto
*/
clearPlayingItem?: boolean;
}
/**
* Check if a given object implements the RemoveFromPlaylistRequestDto interface.
*/
export function instanceOfRemoveFromPlaylistRequestDto(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function RemoveFromPlaylistRequestDtoFromJSON(json: any): RemoveFromPlaylistRequestDto {
return RemoveFromPlaylistRequestDtoFromJSONTyped(json, false);
}
export function RemoveFromPlaylistRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemoveFromPlaylistRequestDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'playlistItemIds': !exists(json, 'PlaylistItemIds') ? undefined : json['PlaylistItemIds'],
'clearPlaylist': !exists(json, 'ClearPlaylist') ? undefined : json['ClearPlaylist'],
'clearPlayingItem': !exists(json, 'ClearPlayingItem') ? undefined : json['ClearPlayingItem'],
};
}
export function RemoveFromPlaylistRequestDtoToJSON(value?: RemoveFromPlaylistRequestDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'PlaylistItemIds': value.playlistItemIds,
'ClearPlaylist': value.clearPlaylist,
'ClearPlayingItem': value.clearPlayingItem,
};
}