105 lines
2.8 KiB
TypeScript
105 lines
2.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';
|
||
|
import type { DayOfWeek } from './DayOfWeek';
|
||
|
import {
|
||
|
DayOfWeekFromJSON,
|
||
|
DayOfWeekFromJSONTyped,
|
||
|
DayOfWeekToJSON,
|
||
|
} from './DayOfWeek';
|
||
|
|
||
|
/**
|
||
|
* Class TaskTriggerInfo.
|
||
|
* @export
|
||
|
* @interface TaskTriggerInfo
|
||
|
*/
|
||
|
export interface TaskTriggerInfo {
|
||
|
/**
|
||
|
* Gets or sets the type.
|
||
|
* @type {string}
|
||
|
* @memberof TaskTriggerInfo
|
||
|
*/
|
||
|
type?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the time of day.
|
||
|
* @type {number}
|
||
|
* @memberof TaskTriggerInfo
|
||
|
*/
|
||
|
timeOfDayTicks?: number | null;
|
||
|
/**
|
||
|
* Gets or sets the interval.
|
||
|
* @type {number}
|
||
|
* @memberof TaskTriggerInfo
|
||
|
*/
|
||
|
intervalTicks?: number | null;
|
||
|
/**
|
||
|
*
|
||
|
* @type {DayOfWeek}
|
||
|
* @memberof TaskTriggerInfo
|
||
|
*/
|
||
|
dayOfWeek?: DayOfWeek | null;
|
||
|
/**
|
||
|
* Gets or sets the maximum runtime ticks.
|
||
|
* @type {number}
|
||
|
* @memberof TaskTriggerInfo
|
||
|
*/
|
||
|
maxRuntimeTicks?: number | null;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the TaskTriggerInfo interface.
|
||
|
*/
|
||
|
export function instanceOfTaskTriggerInfo(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function TaskTriggerInfoFromJSON(json: any): TaskTriggerInfo {
|
||
|
return TaskTriggerInfoFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function TaskTriggerInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskTriggerInfo {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'type': !exists(json, 'Type') ? undefined : json['Type'],
|
||
|
'timeOfDayTicks': !exists(json, 'TimeOfDayTicks') ? undefined : json['TimeOfDayTicks'],
|
||
|
'intervalTicks': !exists(json, 'IntervalTicks') ? undefined : json['IntervalTicks'],
|
||
|
'dayOfWeek': !exists(json, 'DayOfWeek') ? undefined : DayOfWeekFromJSON(json['DayOfWeek']),
|
||
|
'maxRuntimeTicks': !exists(json, 'MaxRuntimeTicks') ? undefined : json['MaxRuntimeTicks'],
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function TaskTriggerInfoToJSON(value?: TaskTriggerInfo | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'Type': value.type,
|
||
|
'TimeOfDayTicks': value.timeOfDayTicks,
|
||
|
'IntervalTicks': value.intervalTicks,
|
||
|
'DayOfWeek': DayOfWeekToJSON(value.dayOfWeek),
|
||
|
'MaxRuntimeTicks': value.maxRuntimeTicks,
|
||
|
};
|
||
|
}
|
||
|
|