@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
39 lines • 1.47 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserServerCheck = void 0;
const index_1 = require("./../index");
class UserServerCheck extends index_1.ServerCheck {
constructor(data) {
super(data);
let nameDefault = "";
this.name = typeof (data === null || data === void 0 ? void 0 : data.name) !== "undefined" ? data === null || data === void 0 ? void 0 : data.name : nameDefault;
let passwordDefault = "";
this.password = typeof (data === null || data === void 0 ? void 0 : data.password) !== "undefined" ? data === null || data === void 0 ? void 0 : data.password : passwordDefault;
}
static getNameDefault() {
return "";
}
static getNameDescription() {
return "The name required to access the user storage.";
}
static getPasswordDefault() {
return "";
}
static getPasswordDescription() {
return "The password required to access the user storage.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new UserServerCheck(data);
}
toJson() {
return Object.assign(Object.assign({}, (super.toJson())), { 'name': this.name, 'password': this.password });
}
clone() {
return UserServerCheck.fromJson(this.toJson());
}
}
exports.UserServerCheck = UserServerCheck;
//# sourceMappingURL=UserServerCheck.js.map