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

82 lines
2.6 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 SyncPlayRemoveFromPlaylistRequest
*/
export interface SyncPlayRemoveFromPlaylistRequest {
/**
* Gets or sets the playlist identifiers ot the items. Ignored when clearing the playlist.
* @type {Array<string>}
* @memberof SyncPlayRemoveFromPlaylistRequest
*/
playlistItemIds?: Array<string>;
/**
* Gets or sets a value indicating whether the entire playlist should be cleared.
* @type {boolean}
* @memberof SyncPlayRemoveFromPlaylistRequest
*/
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 SyncPlayRemoveFromPlaylistRequest
*/
clearPlayingItem?: boolean;
}
/**
* Check if a given object implements the SyncPlayRemoveFromPlaylistRequest interface.
*/
export function instanceOfSyncPlayRemoveFromPlaylistRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function SyncPlayRemoveFromPlaylistRequestFromJSON(json: any): SyncPlayRemoveFromPlaylistRequest {
return SyncPlayRemoveFromPlaylistRequestFromJSONTyped(json, false);
}
export function SyncPlayRemoveFromPlaylistRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncPlayRemoveFromPlaylistRequest {
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 SyncPlayRemoveFromPlaylistRequestToJSON(value?: SyncPlayRemoveFromPlaylistRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'PlaylistItemIds': value.playlistItemIds,
'ClearPlaylist': value.clearPlaylist,
'ClearPlayingItem': value.clearPlayingItem,
};
}