jellyfin-discord-bot/server/jellyfin/models/SendFullGeneralCommandRequest.ts

89 lines
2.4 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 SendFullGeneralCommandRequest
*/
export interface SendFullGeneralCommandRequest {
/**
*
* @type {GeneralCommandType}
* @memberof SendFullGeneralCommandRequest
*/
name?: GeneralCommandType;
/**
*
* @type {string}
* @memberof SendFullGeneralCommandRequest
*/
controllingUserId?: string;
/**
*
* @type {{ [key: string]: string; }}
* @memberof SendFullGeneralCommandRequest
*/
arguments?: { [key: string]: string; };
}
/**
* Check if a given object implements the SendFullGeneralCommandRequest interface.
*/
export function instanceOfSendFullGeneralCommandRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function SendFullGeneralCommandRequestFromJSON(json: any): SendFullGeneralCommandRequest {
return SendFullGeneralCommandRequestFromJSONTyped(json, false);
}
export function SendFullGeneralCommandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendFullGeneralCommandRequest {
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 SendFullGeneralCommandRequestToJSON(value?: SendFullGeneralCommandRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': GeneralCommandTypeToJSON(value.name),
'ControllingUserId': value.controllingUserId,
'Arguments': value.arguments,
};
}