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

97 lines
2.9 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 { PersonLookupInfo } from './PersonLookupInfo';
import {
PersonLookupInfoFromJSON,
PersonLookupInfoFromJSONTyped,
PersonLookupInfoToJSON,
} from './PersonLookupInfo';
/**
*
* @export
* @interface PersonLookupInfoRemoteSearchQuery
*/
export interface PersonLookupInfoRemoteSearchQuery {
/**
*
* @type {PersonLookupInfo}
* @memberof PersonLookupInfoRemoteSearchQuery
*/
searchInfo?: PersonLookupInfo | null;
/**
*
* @type {string}
* @memberof PersonLookupInfoRemoteSearchQuery
*/
itemId?: string;
/**
* Gets or sets the provider name to search within if set.
* @type {string}
* @memberof PersonLookupInfoRemoteSearchQuery
*/
searchProviderName?: string | null;
/**
* Gets or sets a value indicating whether disabled providers should be included.
* @type {boolean}
* @memberof PersonLookupInfoRemoteSearchQuery
*/
includeDisabledProviders?: boolean;
}
/**
* Check if a given object implements the PersonLookupInfoRemoteSearchQuery interface.
*/
export function instanceOfPersonLookupInfoRemoteSearchQuery(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PersonLookupInfoRemoteSearchQueryFromJSON(json: any): PersonLookupInfoRemoteSearchQuery {
return PersonLookupInfoRemoteSearchQueryFromJSONTyped(json, false);
}
export function PersonLookupInfoRemoteSearchQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonLookupInfoRemoteSearchQuery {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'searchInfo': !exists(json, 'SearchInfo') ? undefined : PersonLookupInfoFromJSON(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 PersonLookupInfoRemoteSearchQueryToJSON(value?: PersonLookupInfoRemoteSearchQuery | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'SearchInfo': PersonLookupInfoToJSON(value.searchInfo),
'ItemId': value.itemId,
'SearchProviderName': value.searchProviderName,
'IncludeDisabledProviders': value.includeDisabledProviders,
};
}