74 lines
2.0 KiB
TypeScript
74 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';
|
|
/**
|
|
* Class MovePlaylistItemRequestDto.
|
|
* @export
|
|
* @interface MovePlaylistItemRequestDto
|
|
*/
|
|
export interface MovePlaylistItemRequestDto {
|
|
/**
|
|
* Gets or sets the playlist identifier of the item.
|
|
* @type {string}
|
|
* @memberof MovePlaylistItemRequestDto
|
|
*/
|
|
playlistItemId?: string;
|
|
/**
|
|
* Gets or sets the new position.
|
|
* @type {number}
|
|
* @memberof MovePlaylistItemRequestDto
|
|
*/
|
|
newIndex?: number;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the MovePlaylistItemRequestDto interface.
|
|
*/
|
|
export function instanceOfMovePlaylistItemRequestDto(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function MovePlaylistItemRequestDtoFromJSON(json: any): MovePlaylistItemRequestDto {
|
|
return MovePlaylistItemRequestDtoFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function MovePlaylistItemRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MovePlaylistItemRequestDto {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'playlistItemId': !exists(json, 'PlaylistItemId') ? undefined : json['PlaylistItemId'],
|
|
'newIndex': !exists(json, 'NewIndex') ? undefined : json['NewIndex'],
|
|
};
|
|
}
|
|
|
|
export function MovePlaylistItemRequestDtoToJSON(value?: MovePlaylistItemRequestDto | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'PlaylistItemId': value.playlistItemId,
|
|
'NewIndex': value.newIndex,
|
|
};
|
|
}
|
|
|