81 lines
2.0 KiB
TypeScript
81 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';
|
|
/**
|
|
* An entity representing custom options for a device.
|
|
* @export
|
|
* @interface DeviceOptions
|
|
*/
|
|
export interface DeviceOptions {
|
|
/**
|
|
* Gets the id.
|
|
* @type {number}
|
|
* @memberof DeviceOptions
|
|
*/
|
|
readonly id?: number;
|
|
/**
|
|
* Gets the device id.
|
|
* @type {string}
|
|
* @memberof DeviceOptions
|
|
*/
|
|
deviceId?: string;
|
|
/**
|
|
* Gets or sets the custom name.
|
|
* @type {string}
|
|
* @memberof DeviceOptions
|
|
*/
|
|
customName?: string | null;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the DeviceOptions interface.
|
|
*/
|
|
export function instanceOfDeviceOptions(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function DeviceOptionsFromJSON(json: any): DeviceOptions {
|
|
return DeviceOptionsFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function DeviceOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceOptions {
|
|
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 DeviceOptionsToJSON(value?: DeviceOptions | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'DeviceId': value.deviceId,
|
|
'CustomName': value.customName,
|
|
};
|
|
}
|
|
|