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

73 lines
1.9 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';
import type { GroupRepeatMode } from './GroupRepeatMode';
import {
GroupRepeatModeFromJSON,
GroupRepeatModeFromJSONTyped,
GroupRepeatModeToJSON,
} from './GroupRepeatMode';
/**
* Class SetRepeatModeRequestDto.
* @export
* @interface SyncPlaySetRepeatModeRequest
*/
export interface SyncPlaySetRepeatModeRequest {
/**
*
* @type {GroupRepeatMode}
* @memberof SyncPlaySetRepeatModeRequest
*/
mode?: GroupRepeatMode;
}
/**
* Check if a given object implements the SyncPlaySetRepeatModeRequest interface.
*/
export function instanceOfSyncPlaySetRepeatModeRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function SyncPlaySetRepeatModeRequestFromJSON(json: any): SyncPlaySetRepeatModeRequest {
return SyncPlaySetRepeatModeRequestFromJSONTyped(json, false);
}
export function SyncPlaySetRepeatModeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncPlaySetRepeatModeRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'mode': !exists(json, 'Mode') ? undefined : GroupRepeatModeFromJSON(json['Mode']),
};
}
export function SyncPlaySetRepeatModeRequestToJSON(value?: SyncPlaySetRepeatModeRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Mode': GroupRepeatModeToJSON(value.mode),
};
}