73 lines
1.9 KiB
TypeScript
73 lines
1.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 { LiveStreamResponseMediaSource } from './LiveStreamResponseMediaSource';
|
|
import {
|
|
LiveStreamResponseMediaSourceFromJSON,
|
|
LiveStreamResponseMediaSourceFromJSONTyped,
|
|
LiveStreamResponseMediaSourceToJSON,
|
|
} from './LiveStreamResponseMediaSource';
|
|
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface LiveStreamResponse
|
|
*/
|
|
export interface LiveStreamResponse {
|
|
/**
|
|
*
|
|
* @type {LiveStreamResponseMediaSource}
|
|
* @memberof LiveStreamResponse
|
|
*/
|
|
mediaSource?: LiveStreamResponseMediaSource;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the LiveStreamResponse interface.
|
|
*/
|
|
export function instanceOfLiveStreamResponse(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function LiveStreamResponseFromJSON(json: any): LiveStreamResponse {
|
|
return LiveStreamResponseFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function LiveStreamResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveStreamResponse {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'mediaSource': !exists(json, 'MediaSource') ? undefined : LiveStreamResponseMediaSourceFromJSON(json['MediaSource']),
|
|
};
|
|
}
|
|
|
|
export function LiveStreamResponseToJSON(value?: LiveStreamResponse | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'MediaSource': LiveStreamResponseMediaSourceToJSON(value.mediaSource),
|
|
};
|
|
}
|
|
|