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

130 lines
3.6 KiB
TypeScript
Raw 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';
import type { VersionInfo } from './VersionInfo';
import {
VersionInfoFromJSON,
VersionInfoFromJSONTyped,
VersionInfoToJSON,
} from './VersionInfo';
/**
* Class PackageInfo.
* @export
* @interface PackageInfo
*/
export interface PackageInfo {
/**
* Gets or sets the name.
* @type {string}
* @memberof PackageInfo
*/
name?: string;
/**
* Gets or sets a long description of the plugin containing features or helpful explanations.
* @type {string}
* @memberof PackageInfo
*/
description?: string;
/**
* Gets or sets a short overview of what the plugin does.
* @type {string}
* @memberof PackageInfo
*/
overview?: string;
/**
* Gets or sets the owner.
* @type {string}
* @memberof PackageInfo
*/
owner?: string;
/**
* Gets or sets the category.
* @type {string}
* @memberof PackageInfo
*/
category?: string;
/**
* Gets or sets the guid of the assembly associated with this plugin.
* This is used to identify the proper item for automatic updates.
* @type {string}
* @memberof PackageInfo
*/
guid?: string;
/**
* Gets or sets the versions.
* @type {Array<VersionInfo>}
* @memberof PackageInfo
*/
versions?: Array<VersionInfo>;
/**
* Gets or sets the image url for the package.
* @type {string}
* @memberof PackageInfo
*/
imageUrl?: string | null;
}
/**
* Check if a given object implements the PackageInfo interface.
*/
export function instanceOfPackageInfo(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PackageInfoFromJSON(json: any): PackageInfo {
return PackageInfoFromJSONTyped(json, false);
}
export function PackageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PackageInfo {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'name') ? undefined : json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'overview': !exists(json, 'overview') ? undefined : json['overview'],
'owner': !exists(json, 'owner') ? undefined : json['owner'],
'category': !exists(json, 'category') ? undefined : json['category'],
'guid': !exists(json, 'guid') ? undefined : json['guid'],
'versions': !exists(json, 'versions') ? undefined : ((json['versions'] as Array<any>).map(VersionInfoFromJSON)),
'imageUrl': !exists(json, 'imageUrl') ? undefined : json['imageUrl'],
};
}
export function PackageInfoToJSON(value?: PackageInfo | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'name': value.name,
'description': value.description,
'overview': value.overview,
'owner': value.owner,
'category': value.category,
'guid': value.guid,
'versions': value.versions === undefined ? undefined : ((value.versions as Array<any>).map(VersionInfoToJSON)),
'imageUrl': value.imageUrl,
};
}