82 lines
2.0 KiB
TypeScript
82 lines
2.0 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';
|
|
/**
|
|
* A dto representing custom options for a device.
|
|
* @export
|
|
* @interface DeviceOptionsDto
|
|
*/
|
|
export interface DeviceOptionsDto {
|
|
/**
|
|
* Gets or sets the id.
|
|
* @type {number}
|
|
* @memberof DeviceOptionsDto
|
|
*/
|
|
id?: number;
|
|
/**
|
|
* Gets or sets the device id.
|
|
* @type {string}
|
|
* @memberof DeviceOptionsDto
|
|
*/
|
|
deviceId?: string | null;
|
|
/**
|
|
* Gets or sets the custom name.
|
|
* @type {string}
|
|
* @memberof DeviceOptionsDto
|
|
*/
|
|
customName?: string | null;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the DeviceOptionsDto interface.
|
|
*/
|
|
export function instanceOfDeviceOptionsDto(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function DeviceOptionsDtoFromJSON(json: any): DeviceOptionsDto {
|
|
return DeviceOptionsDtoFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function DeviceOptionsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceOptionsDto {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': !exists(json, 'Id') ? undefined : json['Id'],
|
|
'deviceId': !exists(json, 'DeviceId') ? undefined : json['DeviceId'],
|
|
'customName': !exists(json, 'CustomName') ? undefined : json['CustomName'],
|
|
};
|
|
}
|
|
|
|
export function DeviceOptionsDtoToJSON(value?: DeviceOptionsDto | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'Id': value.id,
|
|
'DeviceId': value.deviceId,
|
|
'CustomName': value.customName,
|
|
};
|
|
}
|
|
|