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

82 lines
2.2 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';
/**
* A dto representing custom options for a device.
* @export
* @interface UpdateDeviceOptionsRequest
*/
export interface UpdateDeviceOptionsRequest {
/**
* Gets or sets the id.
* @type {number}
* @memberof UpdateDeviceOptionsRequest
*/
id?: number;
/**
* Gets or sets the device id.
* @type {string}
* @memberof UpdateDeviceOptionsRequest
*/
deviceId?: string | null;
/**
* Gets or sets the custom name.
* @type {string}
* @memberof UpdateDeviceOptionsRequest
*/
customName?: string | null;
}
/**
* Check if a given object implements the UpdateDeviceOptionsRequest interface.
*/
export function instanceOfUpdateDeviceOptionsRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function UpdateDeviceOptionsRequestFromJSON(json: any): UpdateDeviceOptionsRequest {
return UpdateDeviceOptionsRequestFromJSONTyped(json, false);
}
export function UpdateDeviceOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDeviceOptionsRequest {
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 UpdateDeviceOptionsRequestToJSON(value?: UpdateDeviceOptionsRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Id': value.id,
'DeviceId': value.deviceId,
'CustomName': value.customName,
};
}