73 lines
1.8 KiB
TypeScript
73 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';
|
|
import type { GroupShuffleMode } from './GroupShuffleMode';
|
|
import {
|
|
GroupShuffleModeFromJSON,
|
|
GroupShuffleModeFromJSONTyped,
|
|
GroupShuffleModeToJSON,
|
|
} from './GroupShuffleMode';
|
|
|
|
/**
|
|
* Class SetShuffleModeRequestDto.
|
|
* @export
|
|
* @interface SetShuffleModeRequestDto
|
|
*/
|
|
export interface SetShuffleModeRequestDto {
|
|
/**
|
|
*
|
|
* @type {GroupShuffleMode}
|
|
* @memberof SetShuffleModeRequestDto
|
|
*/
|
|
mode?: GroupShuffleMode;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the SetShuffleModeRequestDto interface.
|
|
*/
|
|
export function instanceOfSetShuffleModeRequestDto(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function SetShuffleModeRequestDtoFromJSON(json: any): SetShuffleModeRequestDto {
|
|
return SetShuffleModeRequestDtoFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function SetShuffleModeRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetShuffleModeRequestDto {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'mode': !exists(json, 'Mode') ? undefined : GroupShuffleModeFromJSON(json['Mode']),
|
|
};
|
|
}
|
|
|
|
export function SetShuffleModeRequestDtoToJSON(value?: SetShuffleModeRequestDto | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'Mode': GroupShuffleModeToJSON(value.mode),
|
|
};
|
|
}
|
|
|