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

97 lines
2.8 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';
import type { AlbumInfo } from './AlbumInfo';
import {
AlbumInfoFromJSON,
AlbumInfoFromJSONTyped,
AlbumInfoToJSON,
} from './AlbumInfo';
/**
*
* @export
* @interface AlbumInfoRemoteSearchQuery
*/
export interface AlbumInfoRemoteSearchQuery {
/**
*
* @type {AlbumInfo}
* @memberof AlbumInfoRemoteSearchQuery
*/
searchInfo?: AlbumInfo | null;
/**
*
* @type {string}
* @memberof AlbumInfoRemoteSearchQuery
*/
itemId?: string;
/**
* Gets or sets the provider name to search within if set.
* @type {string}
* @memberof AlbumInfoRemoteSearchQuery
*/
searchProviderName?: string | null;
/**
* Gets or sets a value indicating whether disabled providers should be included.
* @type {boolean}
* @memberof AlbumInfoRemoteSearchQuery
*/
includeDisabledProviders?: boolean;
}
/**
* Check if a given object implements the AlbumInfoRemoteSearchQuery interface.
*/
export function instanceOfAlbumInfoRemoteSearchQuery(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function AlbumInfoRemoteSearchQueryFromJSON(json: any): AlbumInfoRemoteSearchQuery {
return AlbumInfoRemoteSearchQueryFromJSONTyped(json, false);
}
export function AlbumInfoRemoteSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlbumInfoRemoteSearchQuery {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'searchInfo': !exists(json, 'SearchInfo') ? undefined : AlbumInfoFromJSON(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 AlbumInfoRemoteSearchQueryToJSON(value?: AlbumInfoRemoteSearchQuery | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'SearchInfo': AlbumInfoToJSON(value.searchInfo),
'ItemId': value.itemId,
'SearchProviderName': value.searchProviderName,
'IncludeDisabledProviders': value.includeDisabledProviders,
};
}