89 lines
2.2 KiB
TypeScript
89 lines
2.2 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 { GeneralCommandType } from './GeneralCommandType';
|
||
|
import {
|
||
|
GeneralCommandTypeFromJSON,
|
||
|
GeneralCommandTypeFromJSONTyped,
|
||
|
GeneralCommandTypeToJSON,
|
||
|
} from './GeneralCommandType';
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @export
|
||
|
* @interface GeneralCommand
|
||
|
*/
|
||
|
export interface GeneralCommand {
|
||
|
/**
|
||
|
*
|
||
|
* @type {GeneralCommandType}
|
||
|
* @memberof GeneralCommand
|
||
|
*/
|
||
|
name?: GeneralCommandType;
|
||
|
/**
|
||
|
*
|
||
|
* @type {string}
|
||
|
* @memberof GeneralCommand
|
||
|
*/
|
||
|
controllingUserId?: string;
|
||
|
/**
|
||
|
*
|
||
|
* @type {{ [key: string]: string; }}
|
||
|
* @memberof GeneralCommand
|
||
|
*/
|
||
|
arguments?: { [key: string]: string; };
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the GeneralCommand interface.
|
||
|
*/
|
||
|
export function instanceOfGeneralCommand(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function GeneralCommandFromJSON(json: any): GeneralCommand {
|
||
|
return GeneralCommandFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function GeneralCommandFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeneralCommand {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'name': !exists(json, 'Name') ? undefined : GeneralCommandTypeFromJSON(json['Name']),
|
||
|
'controllingUserId': !exists(json, 'ControllingUserId') ? undefined : json['ControllingUserId'],
|
||
|
'arguments': !exists(json, 'Arguments') ? undefined : json['Arguments'],
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function GeneralCommandToJSON(value?: GeneralCommand | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'Name': GeneralCommandTypeToJSON(value.name),
|
||
|
'ControllingUserId': value.controllingUserId,
|
||
|
'Arguments': value.arguments,
|
||
|
};
|
||
|
}
|
||
|
|