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

114 lines
3.4 KiB
TypeScript
Raw Permalink 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';
/**
* Class MetadataOptions.
* @export
* @interface MetadataOptions
*/
export interface MetadataOptions {
/**
*
* @type {string}
* @memberof MetadataOptions
*/
itemType?: string | null;
/**
*
* @type {Array<string>}
* @memberof MetadataOptions
*/
disabledMetadataSavers?: Array<string> | null;
/**
*
* @type {Array<string>}
* @memberof MetadataOptions
*/
localMetadataReaderOrder?: Array<string> | null;
/**
*
* @type {Array<string>}
* @memberof MetadataOptions
*/
disabledMetadataFetchers?: Array<string> | null;
/**
*
* @type {Array<string>}
* @memberof MetadataOptions
*/
metadataFetcherOrder?: Array<string> | null;
/**
*
* @type {Array<string>}
* @memberof MetadataOptions
*/
disabledImageFetchers?: Array<string> | null;
/**
*
* @type {Array<string>}
* @memberof MetadataOptions
*/
imageFetcherOrder?: Array<string> | null;
}
/**
* Check if a given object implements the MetadataOptions interface.
*/
export function instanceOfMetadataOptions(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function MetadataOptionsFromJSON(json: any): MetadataOptions {
return MetadataOptionsFromJSONTyped(json, false);
}
export function MetadataOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataOptions {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'itemType': !exists(json, 'ItemType') ? undefined : json['ItemType'],
'disabledMetadataSavers': !exists(json, 'DisabledMetadataSavers') ? undefined : json['DisabledMetadataSavers'],
'localMetadataReaderOrder': !exists(json, 'LocalMetadataReaderOrder') ? undefined : json['LocalMetadataReaderOrder'],
'disabledMetadataFetchers': !exists(json, 'DisabledMetadataFetchers') ? undefined : json['DisabledMetadataFetchers'],
'metadataFetcherOrder': !exists(json, 'MetadataFetcherOrder') ? undefined : json['MetadataFetcherOrder'],
'disabledImageFetchers': !exists(json, 'DisabledImageFetchers') ? undefined : json['DisabledImageFetchers'],
'imageFetcherOrder': !exists(json, 'ImageFetcherOrder') ? undefined : json['ImageFetcherOrder'],
};
}
export function MetadataOptionsToJSON(value?: MetadataOptions | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'ItemType': value.itemType,
'DisabledMetadataSavers': value.disabledMetadataSavers,
'LocalMetadataReaderOrder': value.localMetadataReaderOrder,
'DisabledMetadataFetchers': value.disabledMetadataFetchers,
'MetadataFetcherOrder': value.metadataFetcherOrder,
'DisabledImageFetchers': value.disabledImageFetchers,
'ImageFetcherOrder': value.imageFetcherOrder,
};
}