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 { BaseItemDto } from './BaseItemDto';
|
||
|
import {
|
||
|
BaseItemDtoFromJSON,
|
||
|
BaseItemDtoFromJSONTyped,
|
||
|
BaseItemDtoToJSON,
|
||
|
} from './BaseItemDto';
|
||
|
|
||
|
/**
|
||
|
* Class ThemeMediaResult.
|
||
|
* @export
|
||
|
* @interface AllThemeMediaResultThemeVideosResult
|
||
|
*/
|
||
|
export interface AllThemeMediaResultThemeVideosResult {
|
||
|
/**
|
||
|
* Gets or sets the items.
|
||
|
* @type {Array<BaseItemDto>}
|
||
|
* @memberof AllThemeMediaResultThemeVideosResult
|
||
|
*/
|
||
|
items?: Array<BaseItemDto> | null;
|
||
|
/**
|
||
|
* Gets or sets the total number of records available.
|
||
|
* @type {number}
|
||
|
* @memberof AllThemeMediaResultThemeVideosResult
|
||
|
*/
|
||
|
totalRecordCount?: number;
|
||
|
/**
|
||
|
* Gets or sets the index of the first record in Items.
|
||
|
* @type {number}
|
||
|
* @memberof AllThemeMediaResultThemeVideosResult
|
||
|
*/
|
||
|
startIndex?: number;
|
||
|
/**
|
||
|
* Gets or sets the owner id.
|
||
|
* @type {string}
|
||
|
* @memberof AllThemeMediaResultThemeVideosResult
|
||
|
*/
|
||
|
ownerId?: string;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the AllThemeMediaResultThemeVideosResult interface.
|
||
|
*/
|
||
|
export function instanceOfAllThemeMediaResultThemeVideosResult(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function AllThemeMediaResultThemeVideosResultFromJSON(json: any): AllThemeMediaResultThemeVideosResult {
|
||
|
return AllThemeMediaResultThemeVideosResultFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function AllThemeMediaResultThemeVideosResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllThemeMediaResultThemeVideosResult {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'items': !exists(json, 'Items') ? undefined : (json['Items'] === null ? null : (json['Items'] as Array<any>).map(BaseItemDtoFromJSON)),
|
||
|
'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'],
|
||
|
'startIndex': !exists(json, 'StartIndex') ? undefined : json['StartIndex'],
|
||
|
'ownerId': !exists(json, 'OwnerId') ? undefined : json['OwnerId'],
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function AllThemeMediaResultThemeVideosResultToJSON(value?: AllThemeMediaResultThemeVideosResult | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'Items': value.items === undefined ? undefined : (value.items === null ? null : (value.items as Array<any>).map(BaseItemDtoToJSON)),
|
||
|
'TotalRecordCount': value.totalRecordCount,
|
||
|
'StartIndex': value.startIndex,
|
||
|
'OwnerId': value.ownerId,
|
||
|
};
|
||
|
}
|
||
|
|