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

97 lines
2.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 { MusicVideoInfo } from './MusicVideoInfo';
import {
MusicVideoInfoFromJSON,
MusicVideoInfoFromJSONTyped,
MusicVideoInfoToJSON,
} from './MusicVideoInfo';
/**
*
* @export
* @interface MusicVideoInfoRemoteSearchQuery
*/
export interface MusicVideoInfoRemoteSearchQuery {
/**
*
* @type {MusicVideoInfo}
* @memberof MusicVideoInfoRemoteSearchQuery
*/
searchInfo?: MusicVideoInfo | null;
/**
*
* @type {string}
* @memberof MusicVideoInfoRemoteSearchQuery
*/
itemId?: string;
/**
* Gets or sets the provider name to search within if set.
* @type {string}
* @memberof MusicVideoInfoRemoteSearchQuery
*/
searchProviderName?: string | null;
/**
* Gets or sets a value indicating whether disabled providers should be included.
* @type {boolean}
* @memberof MusicVideoInfoRemoteSearchQuery
*/
includeDisabledProviders?: boolean;
}
/**
* Check if a given object implements the MusicVideoInfoRemoteSearchQuery interface.
*/
export function instanceOfMusicVideoInfoRemoteSearchQuery(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function MusicVideoInfoRemoteSearchQueryFromJSON(json: any): MusicVideoInfoRemoteSearchQuery {
return MusicVideoInfoRemoteSearchQueryFromJSONTyped(json, false);
}
export function MusicVideoInfoRemoteSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): MusicVideoInfoRemoteSearchQuery {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'searchInfo': !exists(json, 'SearchInfo') ? undefined : MusicVideoInfoFromJSON(json['SearchInfo']),
'itemId': !exists(json, 'ItemId') ? undefined : json['ItemId'],
'searchProviderName': !exists(json, 'SearchProviderName') ? undefined : json['SearchProviderName'],
'includeDisabledProviders': !exists(json, 'IncludeDisabledProviders') ? undefined : json['IncludeDisabledProviders'],
};
}
export function MusicVideoInfoRemoteSearchQueryToJSON(value?: MusicVideoInfoRemoteSearchQuery | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'SearchInfo': MusicVideoInfoToJSON(value.searchInfo),
'ItemId': value.itemId,
'SearchProviderName': value.searchProviderName,
'IncludeDisabledProviders': value.includeDisabledProviders,
};
}