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

81 lines
2.1 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 { SearchHint } from './SearchHint';
import {
SearchHintFromJSON,
SearchHintFromJSONTyped,
SearchHintToJSON,
} from './SearchHint';
/**
* Class SearchHintResult.
* @export
* @interface SearchHintResult
*/
export interface SearchHintResult {
/**
* Gets the search hints.
* @type {Array<SearchHint>}
* @memberof SearchHintResult
*/
searchHints?: Array<SearchHint>;
/**
* Gets the total record count.
* @type {number}
* @memberof SearchHintResult
*/
totalRecordCount?: number;
}
/**
* Check if a given object implements the SearchHintResult interface.
*/
export function instanceOfSearchHintResult(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function SearchHintResultFromJSON(json: any): SearchHintResult {
return SearchHintResultFromJSONTyped(json, false);
}
export function SearchHintResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchHintResult {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'searchHints': !exists(json, 'SearchHints') ? undefined : ((json['SearchHints'] as Array<any>).map(SearchHintFromJSON)),
'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'],
};
}
export function SearchHintResultToJSON(value?: SearchHintResult | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'SearchHints': value.searchHints === undefined ? undefined : ((value.searchHints as Array<any>).map(SearchHintToJSON)),
'TotalRecordCount': value.totalRecordCount,
};
}