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

137 lines
4.2 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';
import type { HttpHeaderInfo } from './HttpHeaderInfo';
import {
HttpHeaderInfoFromJSON,
HttpHeaderInfoFromJSONTyped,
HttpHeaderInfoToJSON,
} from './HttpHeaderInfo';
/**
* Gets or sets the Identification.
* @export
* @interface DeviceProfileIdentification
*/
export interface DeviceProfileIdentification {
/**
* Gets or sets the name of the friendly.
* @type {string}
* @memberof DeviceProfileIdentification
*/
friendlyName?: string;
/**
* Gets or sets the model number.
* @type {string}
* @memberof DeviceProfileIdentification
*/
modelNumber?: string;
/**
* Gets or sets the serial number.
* @type {string}
* @memberof DeviceProfileIdentification
*/
serialNumber?: string;
/**
* Gets or sets the name of the model.
* @type {string}
* @memberof DeviceProfileIdentification
*/
modelName?: string;
/**
* Gets or sets the model description.
* @type {string}
* @memberof DeviceProfileIdentification
*/
modelDescription?: string;
/**
* Gets or sets the model URL.
* @type {string}
* @memberof DeviceProfileIdentification
*/
modelUrl?: string;
/**
* Gets or sets the manufacturer.
* @type {string}
* @memberof DeviceProfileIdentification
*/
manufacturer?: string;
/**
* Gets or sets the manufacturer URL.
* @type {string}
* @memberof DeviceProfileIdentification
*/
manufacturerUrl?: string;
/**
* Gets or sets the headers.
* @type {Array<HttpHeaderInfo>}
* @memberof DeviceProfileIdentification
*/
headers?: Array<HttpHeaderInfo>;
}
/**
* Check if a given object implements the DeviceProfileIdentification interface.
*/
export function instanceOfDeviceProfileIdentification(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function DeviceProfileIdentificationFromJSON(json: any): DeviceProfileIdentification {
return DeviceProfileIdentificationFromJSONTyped(json, false);
}
export function DeviceProfileIdentificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceProfileIdentification {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'friendlyName': !exists(json, 'FriendlyName') ? undefined : json['FriendlyName'],
'modelNumber': !exists(json, 'ModelNumber') ? undefined : json['ModelNumber'],
'serialNumber': !exists(json, 'SerialNumber') ? undefined : json['SerialNumber'],
'modelName': !exists(json, 'ModelName') ? undefined : json['ModelName'],
'modelDescription': !exists(json, 'ModelDescription') ? undefined : json['ModelDescription'],
'modelUrl': !exists(json, 'ModelUrl') ? undefined : json['ModelUrl'],
'manufacturer': !exists(json, 'Manufacturer') ? undefined : json['Manufacturer'],
'manufacturerUrl': !exists(json, 'ManufacturerUrl') ? undefined : json['ManufacturerUrl'],
'headers': !exists(json, 'Headers') ? undefined : ((json['Headers'] as Array<any>).map(HttpHeaderInfoFromJSON)),
};
}
export function DeviceProfileIdentificationToJSON(value?: DeviceProfileIdentification | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'FriendlyName': value.friendlyName,
'ModelNumber': value.modelNumber,
'SerialNumber': value.serialNumber,
'ModelName': value.modelName,
'ModelDescription': value.modelDescription,
'ModelUrl': value.modelUrl,
'Manufacturer': value.manufacturer,
'ManufacturerUrl': value.manufacturerUrl,
'Headers': value.headers === undefined ? undefined : ((value.headers as Array<any>).map(HttpHeaderInfoToJSON)),
};
}