74 lines
1.8 KiB
TypeScript
74 lines
1.8 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';
|
||
|
/**
|
||
|
* Provides the MAC address and port for wake-on-LAN functionality.
|
||
|
* @export
|
||
|
* @interface WakeOnLanInfo
|
||
|
*/
|
||
|
export interface WakeOnLanInfo {
|
||
|
/**
|
||
|
* Gets the MAC address of the device.
|
||
|
* @type {string}
|
||
|
* @memberof WakeOnLanInfo
|
||
|
*/
|
||
|
macAddress?: string | null;
|
||
|
/**
|
||
|
* Gets or sets the wake-on-LAN port.
|
||
|
* @type {number}
|
||
|
* @memberof WakeOnLanInfo
|
||
|
*/
|
||
|
port?: number;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Check if a given object implements the WakeOnLanInfo interface.
|
||
|
*/
|
||
|
export function instanceOfWakeOnLanInfo(value: object): boolean {
|
||
|
let isInstance = true;
|
||
|
|
||
|
return isInstance;
|
||
|
}
|
||
|
|
||
|
export function WakeOnLanInfoFromJSON(json: any): WakeOnLanInfo {
|
||
|
return WakeOnLanInfoFromJSONTyped(json, false);
|
||
|
}
|
||
|
|
||
|
export function WakeOnLanInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WakeOnLanInfo {
|
||
|
if ((json === undefined) || (json === null)) {
|
||
|
return json;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'macAddress': !exists(json, 'MacAddress') ? undefined : json['MacAddress'],
|
||
|
'port': !exists(json, 'Port') ? undefined : json['Port'],
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function WakeOnLanInfoToJSON(value?: WakeOnLanInfo | null): any {
|
||
|
if (value === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
if (value === null) {
|
||
|
return null;
|
||
|
}
|
||
|
return {
|
||
|
|
||
|
'MacAddress': value.macAddress,
|
||
|
'Port': value.port,
|
||
|
};
|
||
|
}
|
||
|
|