94 lines
2.4 KiB
TypeScript
94 lines
2.4 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';
|
||
|
/**
|
||
|
* Upload subtitles dto.
|
||
|
* @export
|
||
|
* @interface UploadSubtitleRequest
|
||
|
*/
|
||
|
export interface UploadSubtitleRequest {
|
||
|
/**
|
||
|
* Gets or sets the subtitle language.
|
||
|
* @type {string}
|
||
|
* @memberof UploadSubtitleRequest
|
||
|
*/
|
||
|
language: string;
|
||
|
/**
|
||
|
* Gets or sets the subtitle format.
|
||
|
* @type {string}
|
||
|
* @memberof UploadSubtitleRequest
|
||
|
*/
|
||
|
format: string;
|
||
|
/**
|
||
|
* Gets or sets a value indicating whether the subtitle is forced.
|
||
|
* @type {boolean}
|
||
|
* @memberof UploadSubtitleRequest
|
||
|
*/
|
||
|
isForced: boolean;
|
||
|
/**
|
||
|
* Gets or sets the subtitle data.
|
||
|
* @type {string}
|
||
|
* @memberof UploadSubtitleRequest
|
||
|
*/
|
||
|
data: string;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the UploadSubtitleRequest interface.
|
||
|
*/
|
||
|
export function instanceOfUploadSubtitleRequest(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
isInstance = isInstance && "language" in value;
|
||
|
isInstance = isInstance && "format" in value;
|
||
|
isInstance = isInstance && "isForced" in value;
|
||
|
isInstance = isInstance && "data" in value;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function UploadSubtitleRequestFromJSON(json: any): UploadSubtitleRequest {
|
||
|
return UploadSubtitleRequestFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function UploadSubtitleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadSubtitleRequest {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'language': json['Language'],
|
||
|
'format': json['Format'],
|
||
|
'isForced': json['IsForced'],
|
||
|
'data': json['Data'],
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function UploadSubtitleRequestToJSON(value?: UploadSubtitleRequest | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'Language': value.language,
|
||
|
'Format': value.format,
|
||
|
'IsForced': value.isForced,
|
||
|
'Data': value.data,
|
||
|
};
|
||
|
}
|
||
|
|