74 lines
1.7 KiB
TypeScript
74 lines
1.7 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';
|
||
|
/**
|
||
|
*
|
||
|
* @export
|
||
|
* @interface TimerEventInfo
|
||
|
*/
|
||
|
export interface TimerEventInfo {
|
||
|
/**
|
||
|
*
|
||
|
* @type {string}
|
||
|
* @memberof TimerEventInfo
|
||
|
*/
|
||
|
id?: string;
|
||
|
/**
|
||
|
*
|
||
|
* @type {string}
|
||
|
* @memberof TimerEventInfo
|
||
|
*/
|
||
|
programId?: string | null;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the TimerEventInfo interface.
|
||
|
*/
|
||
|
export function instanceOfTimerEventInfo(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function TimerEventInfoFromJSON(json: any): TimerEventInfo {
|
||
|
return TimerEventInfoFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function TimerEventInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimerEventInfo {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
||
|
'programId': !exists(json, 'ProgramId') ? undefined : json['ProgramId'],
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function TimerEventInfoToJSON(value?: TimerEventInfo | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'Id': value.id,
|
||
|
'ProgramId': value.programId,
|
||
|
};
|
||
|
}
|
||
|
|