jellyfin-discord-bot/server/jellyfin/models/BrandingOptions.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';
/**
* The branding options.
* @export
* @interface BrandingOptions
*/
export interface BrandingOptions {
/**
* Gets or sets the login disclaimer.
* @type {string}
* @memberof BrandingOptions
*/
loginDisclaimer?: string | null;
/**
* Gets or sets the custom CSS.
* @type {string}
* @memberof BrandingOptions
*/
customCss?: string | null;
/**
* Gets or sets a value indicating whether to enable the splashscreen.
* @type {boolean}
* @memberof BrandingOptions
*/
splashscreenEnabled?: boolean;
}
/**
* Check if a given object implements the BrandingOptions interface.
*/
export function instanceOfBrandingOptions(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function BrandingOptionsFromJSON(json: any): BrandingOptions {
return BrandingOptionsFromJSONTyped(json, false);
}
export function BrandingOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandingOptions {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'loginDisclaimer': !exists(json, 'LoginDisclaimer') ? undefined : json['LoginDisclaimer'],
'customCss': !exists(json, 'CustomCss') ? undefined : json['CustomCss'],
'splashscreenEnabled': !exists(json, 'SplashscreenEnabled') ? undefined : json['SplashscreenEnabled'],
};
}
export function BrandingOptionsToJSON(value?: BrandingOptions | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'LoginDisclaimer': value.loginDisclaimer,
'CustomCss': value.customCss,
'SplashscreenEnabled': value.splashscreenEnabled,
};
}