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

85 lines
2.3 KiB
TypeScript
Raw Permalink 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';
/**
* Set channel mapping dto.
* @export
* @interface SetChannelMappingRequest
*/
export interface SetChannelMappingRequest {
/**
* Gets or sets the provider id.
* @type {string}
* @memberof SetChannelMappingRequest
*/
providerId: string;
/**
* Gets or sets the tuner channel id.
* @type {string}
* @memberof SetChannelMappingRequest
*/
tunerChannelId: string;
/**
* Gets or sets the provider channel id.
* @type {string}
* @memberof SetChannelMappingRequest
*/
providerChannelId: string;
}
/**
* Check if a given object implements the SetChannelMappingRequest interface.
*/
export function instanceOfSetChannelMappingRequest(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "providerId" in value;
isInstance = isInstance && "tunerChannelId" in value;
isInstance = isInstance && "providerChannelId" in value;
return isInstance;
}
export function SetChannelMappingRequestFromJSON(json: any): SetChannelMappingRequest {
return SetChannelMappingRequestFromJSONTyped(json, false);
}
export function SetChannelMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetChannelMappingRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'providerId': json['ProviderId'],
'tunerChannelId': json['TunerChannelId'],
'providerChannelId': json['ProviderChannelId'],
};
}
export function SetChannelMappingRequestToJSON(value?: SetChannelMappingRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'ProviderId': value.providerId,
'TunerChannelId': value.tunerChannelId,
'ProviderChannelId': value.providerChannelId,
};
}