97 lines
3.0 KiB
TypeScript
97 lines
3.0 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 { ArtistInfo } from './ArtistInfo';
|
||
|
import {
|
||
|
ArtistInfoFromJSON,
|
||
|
ArtistInfoFromJSONTyped,
|
||
|
ArtistInfoToJSON,
|
||
|
} from './ArtistInfo';
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @export
|
||
|
* @interface GetMusicArtistRemoteSearchResultsRequest
|
||
|
*/
|
||
|
export interface GetMusicArtistRemoteSearchResultsRequest {
|
||
|
/**
|
||
|
*
|
||
|
* @type {ArtistInfo}
|
||
|
* @memberof GetMusicArtistRemoteSearchResultsRequest
|
||
|
*/
|
||
|
searchInfo?: ArtistInfo | null;
|
||
|
/**
|
||
|
*
|
||
|
* @type {string}
|
||
|
* @memberof GetMusicArtistRemoteSearchResultsRequest
|
||
|
*/
|
||
|
itemId?: string;
|
||
|
/**
|
||
|
* Gets or sets the provider name to search within if set.
|
||
|
* @type {string}
|
||
|
* @memberof GetMusicArtistRemoteSearchResultsRequest
|
||
|
*/
|
||
|
searchProviderName?: string | null;
|
||
|
/**
|
||
|
* Gets or sets a value indicating whether disabled providers should be included.
|
||
|
* @type {boolean}
|
||
|
* @memberof GetMusicArtistRemoteSearchResultsRequest
|
||
|
*/
|
||
|
includeDisabledProviders?: boolean;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the GetMusicArtistRemoteSearchResultsRequest interface.
|
||
|
*/
|
||
|
export function instanceOfGetMusicArtistRemoteSearchResultsRequest(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function GetMusicArtistRemoteSearchResultsRequestFromJSON(json: any): GetMusicArtistRemoteSearchResultsRequest {
|
||
|
return GetMusicArtistRemoteSearchResultsRequestFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function GetMusicArtistRemoteSearchResultsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMusicArtistRemoteSearchResultsRequest {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'searchInfo': !exists(json, 'SearchInfo') ? undefined : ArtistInfoFromJSON(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 GetMusicArtistRemoteSearchResultsRequestToJSON(value?: GetMusicArtistRemoteSearchResultsRequest | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'SearchInfo': ArtistInfoToJSON(value.searchInfo),
|
||
|
'ItemId': value.itemId,
|
||
|
'SearchProviderName': value.searchProviderName,
|
||
|
'IncludeDisabledProviders': value.includeDisabledProviders,
|
||
|
};
|
||
|
}
|
||
|
|