@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
49 lines • 2.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserInterfaceResources = void 0;
class UserInterfaceResources {
constructor(data) {
let backgroundFileNameDefault = "";
this.backgroundFileName = typeof (data === null || data === void 0 ? void 0 : data.backgroundFileName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.backgroundFileName : backgroundFileNameDefault;
let logoFileNameDefault = "";
this.logoFileName = typeof (data === null || data === void 0 ? void 0 : data.logoFileName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.logoFileName : logoFileNameDefault;
let themeFileNameDefault = "";
this.themeFileName = typeof (data === null || data === void 0 ? void 0 : data.themeFileName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.themeFileName : themeFileNameDefault;
}
static getBackgroundFileNameDefault() {
return "";
}
static getBackgroundFileNameDescription() {
return "The file name used for the background file in the portal. If it is empty, the default background is used, otherwise a custom background was uploaded and saved under the specified name.";
}
static getLogoFileNameDefault() {
return "";
}
static getLogoFileNameDescription() {
return "The file name used for the logo file in the portal. If it is empty, the default logo is used, otherwise a custom logo was uploaded and saved under the specified name.";
}
static getThemeFileNameDefault() {
return "";
}
static getThemeFileNameDescription() {
return "The file name used for the CSS file to customize the theme in the portal. If it is empty, no customized theme is used, otherwise a custom CSS file was uploaded and saved under the specified name.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new UserInterfaceResources(data);
}
toJson() {
return {
'backgroundFileName': this.backgroundFileName,
'logoFileName': this.logoFileName,
'themeFileName': this.themeFileName,
};
}
clone() {
return UserInterfaceResources.fromJson(this.toJson());
}
}
exports.UserInterfaceResources = UserInterfaceResources;
//# sourceMappingURL=UserInterfaceResources.js.map