290 lines
8.8 KiB
TypeScript
290 lines
8.8 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';
|
||
|
/**
|
||
|
* Class SearchHintResult.
|
||
|
* @export
|
||
|
* @interface SearchHint
|
||
|
*/
|
||
|
export interface SearchHint {
|
||
|
/**
|
||
|
* Gets or sets the item id.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
itemId?: string;
|
||
|
/**
|
||
|
*
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
id?: string;
|
||
|
/**
|
||
|
* Gets or sets the name.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
name?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the matched term.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
matchedTerm?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the index number.
|
||
|
* @type {number}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
indexNumber?: number | null;
|
||
|
/**
|
||
|
* Gets or sets the production year.
|
||
|
* @type {number}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
productionYear?: number | null;
|
||
|
/**
|
||
|
* Gets or sets the parent index number.
|
||
|
* @type {number}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
parentIndexNumber?: number | null;
|
||
|
/**
|
||
|
* Gets or sets the image tag.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
primaryImageTag?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the thumb image tag.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
thumbImageTag?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the thumb image item identifier.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
thumbImageItemId?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the backdrop image tag.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
backdropImageTag?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the backdrop image item identifier.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
backdropImageItemId?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the type.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
type?: string | null;
|
||
|
/**
|
||
|
*
|
||
|
* @type {boolean}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
isFolder?: boolean | null;
|
||
|
/**
|
||
|
* Gets or sets the run time ticks.
|
||
|
* @type {number}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
runTimeTicks?: number | null;
|
||
|
/**
|
||
|
* Gets or sets the type of the media.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
mediaType?: string | null;
|
||
|
/**
|
||
|
*
|
||
|
* @type {Date}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
startDate?: Date | null;
|
||
|
/**
|
||
|
*
|
||
|
* @type {Date}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
endDate?: Date | null;
|
||
|
/**
|
||
|
* Gets or sets the series.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
series?: string | null;
|
||
|
/**
|
||
|
*
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
status?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the album.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
album?: string | null;
|
||
|
/**
|
||
|
*
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
albumId?: string;
|
||
|
/**
|
||
|
* Gets or sets the album artist.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
albumArtist?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the artists.
|
||
|
* @type {Array<string>}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
artists?: Array<string> | null;
|
||
|
/**
|
||
|
* Gets or sets the song count.
|
||
|
* @type {number}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
songCount?: number | null;
|
||
|
/**
|
||
|
* Gets or sets the episode count.
|
||
|
* @type {number}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
episodeCount?: number | null;
|
||
|
/**
|
||
|
* Gets or sets the channel identifier.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
channelId?: string;
|
||
|
/**
|
||
|
* Gets or sets the name of the channel.
|
||
|
* @type {string}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
channelName?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the primary image aspect ratio.
|
||
|
* @type {number}
|
||
|
* @memberof SearchHint
|
||
|
*/
|
||
|
primaryImageAspectRatio?: number | null;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the SearchHint interface.
|
||
|
*/
|
||
|
export function instanceOfSearchHint(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function SearchHintFromJSON(json: any): SearchHint {
|
||
|
return SearchHintFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function SearchHintFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchHint {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'itemId': !exists(json, 'ItemId') ? undefined : json['ItemId'],
|
||
|
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||
|
'name': !exists(json, 'Name') ? undefined : json['Name'],
|
||
|
'matchedTerm': !exists(json, 'MatchedTerm') ? undefined : json['MatchedTerm'],
|
||
|
'indexNumber': !exists(json, 'IndexNumber') ? undefined : json['IndexNumber'],
|
||
|
'productionYear': !exists(json, 'ProductionYear') ? undefined : json['ProductionYear'],
|
||
|
'parentIndexNumber': !exists(json, 'ParentIndexNumber') ? undefined : json['ParentIndexNumber'],
|
||
|
'primaryImageTag': !exists(json, 'PrimaryImageTag') ? undefined : json['PrimaryImageTag'],
|
||
|
'thumbImageTag': !exists(json, 'ThumbImageTag') ? undefined : json['ThumbImageTag'],
|
||
|
'thumbImageItemId': !exists(json, 'ThumbImageItemId') ? undefined : json['ThumbImageItemId'],
|
||
|
'backdropImageTag': !exists(json, 'BackdropImageTag') ? undefined : json['BackdropImageTag'],
|
||
|
'backdropImageItemId': !exists(json, 'BackdropImageItemId') ? undefined : json['BackdropImageItemId'],
|
||
|
'type': !exists(json, 'Type') ? undefined : json['Type'],
|
||
|
'isFolder': !exists(json, 'IsFolder') ? undefined : json['IsFolder'],
|
||
|
'runTimeTicks': !exists(json, 'RunTimeTicks') ? undefined : json['RunTimeTicks'],
|
||
|
'mediaType': !exists(json, 'MediaType') ? undefined : json['MediaType'],
|
||
|
'startDate': !exists(json, 'StartDate') ? undefined : (json['StartDate'] === null ? null : new Date(json['StartDate'])),
|
||
|
'endDate': !exists(json, 'EndDate') ? undefined : (json['EndDate'] === null ? null : new Date(json['EndDate'])),
|
||
|
'series': !exists(json, 'Series') ? undefined : json['Series'],
|
||
|
'status': !exists(json, 'Status') ? undefined : json['Status'],
|
||
|
'album': !exists(json, 'Album') ? undefined : json['Album'],
|
||
|
'albumId': !exists(json, 'AlbumId') ? undefined : json['AlbumId'],
|
||
|
'albumArtist': !exists(json, 'AlbumArtist') ? undefined : json['AlbumArtist'],
|
||
|
'artists': !exists(json, 'Artists') ? undefined : json['Artists'],
|
||
|
'songCount': !exists(json, 'SongCount') ? undefined : json['SongCount'],
|
||
|
'episodeCount': !exists(json, 'EpisodeCount') ? undefined : json['EpisodeCount'],
|
||
|
'channelId': !exists(json, 'ChannelId') ? undefined : json['ChannelId'],
|
||
|
'channelName': !exists(json, 'ChannelName') ? undefined : json['ChannelName'],
|
||
|
'primaryImageAspectRatio': !exists(json, 'PrimaryImageAspectRatio') ? undefined : json['PrimaryImageAspectRatio'],
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function SearchHintToJSON(value?: SearchHint | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'ItemId': value.itemId,
|
||
|
'Id': value.id,
|
||
|
'Name': value.name,
|
||
|
'MatchedTerm': value.matchedTerm,
|
||
|
'IndexNumber': value.indexNumber,
|
||
|
'ProductionYear': value.productionYear,
|
||
|
'ParentIndexNumber': value.parentIndexNumber,
|
||
|
'PrimaryImageTag': value.primaryImageTag,
|
||
|
'ThumbImageTag': value.thumbImageTag,
|
||
|
'ThumbImageItemId': value.thumbImageItemId,
|
||
|
'BackdropImageTag': value.backdropImageTag,
|
||
|
'BackdropImageItemId': value.backdropImageItemId,
|
||
|
'Type': value.type,
|
||
|
'IsFolder': value.isFolder,
|
||
|
'RunTimeTicks': value.runTimeTicks,
|
||
|
'MediaType': value.mediaType,
|
||
|
'StartDate': value.startDate === undefined ? undefined : (value.startDate === null ? null : value.startDate.toISOString()),
|
||
|
'EndDate': value.endDate === undefined ? undefined : (value.endDate === null ? null : value.endDate.toISOString()),
|
||
|
'Series': value.series,
|
||
|
'Status': value.status,
|
||
|
'Album': value.album,
|
||
|
'AlbumId': value.albumId,
|
||
|
'AlbumArtist': value.albumArtist,
|
||
|
'Artists': value.artists,
|
||
|
'SongCount': value.songCount,
|
||
|
'EpisodeCount': value.episodeCount,
|
||
|
'ChannelId': value.channelId,
|
||
|
'ChannelName': value.channelName,
|
||
|
'PrimaryImageAspectRatio': value.primaryImageAspectRatio,
|
||
|
};
|
||
|
}
|
||
|
|