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

90 lines
2.3 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';
/**
* The server discovery info model.
* @export
* @interface ServerDiscoveryInfo
*/
export interface ServerDiscoveryInfo {
/**
* Gets the address.
* @type {string}
* @memberof ServerDiscoveryInfo
*/
address?: string;
/**
* Gets the server identifier.
* @type {string}
* @memberof ServerDiscoveryInfo
*/
id?: string;
/**
* Gets the name.
* @type {string}
* @memberof ServerDiscoveryInfo
*/
name?: string;
/**
* Gets the endpoint address.
* @type {string}
* @memberof ServerDiscoveryInfo
*/
endpointAddress?: string | null;
}
/**
* Check if a given object implements the ServerDiscoveryInfo interface.
*/
export function instanceOfServerDiscoveryInfo(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function ServerDiscoveryInfoFromJSON(json: any): ServerDiscoveryInfo {
return ServerDiscoveryInfoFromJSONTyped(json, false);
}
export function ServerDiscoveryInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerDiscoveryInfo {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'address': !exists(json, 'Address') ? undefined : json['Address'],
'id': !exists(json, 'Id') ? undefined : json['Id'],
'name': !exists(json, 'Name') ? undefined : json['Name'],
'endpointAddress': !exists(json, 'EndpointAddress') ? undefined : json['EndpointAddress'],
};
}
export function ServerDiscoveryInfoToJSON(value?: ServerDiscoveryInfo | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Address': value.address,
'Id': value.id,
'Name': value.name,
'EndpointAddress': value.endpointAddress,
};
}