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

90 lines
2.3 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';
/**
*
* @export
* @interface TunerChannelMapping
*/
export interface TunerChannelMapping {
/**
*
* @type {string}
* @memberof TunerChannelMapping
*/
name?: string | null;
/**
*
* @type {string}
* @memberof TunerChannelMapping
*/
providerChannelName?: string | null;
/**
*
* @type {string}
* @memberof TunerChannelMapping
*/
providerChannelId?: string | null;
/**
*
* @type {string}
* @memberof TunerChannelMapping
*/
id?: string | null;
}
/**
* Check if a given object implements the TunerChannelMapping interface.
*/
export function instanceOfTunerChannelMapping(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function TunerChannelMappingFromJSON(json: any): TunerChannelMapping {
return TunerChannelMappingFromJSONTyped(json, false);
}
export function TunerChannelMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): TunerChannelMapping {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'Name') ? undefined : json['Name'],
'providerChannelName': !exists(json, 'ProviderChannelName') ? undefined : json['ProviderChannelName'],
'providerChannelId': !exists(json, 'ProviderChannelId') ? undefined : json['ProviderChannelId'],
'id': !exists(json, 'Id') ? undefined : json['Id'],
};
}
export function TunerChannelMappingToJSON(value?: TunerChannelMapping | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'ProviderChannelName': value.providerChannelName,
'ProviderChannelId': value.providerChannelId,
'Id': value.id,
};
}