@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
43 lines • 1.6 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfigurationResult = void 0;
const index_1 = require("./../index");
class ConfigurationResult {
constructor(data) {
this.error = index_1.WebserviceResult.fromJson(data === null || data === void 0 ? void 0 : data.error);
this.executableError = index_1.ExecutableResult.fromJson(data === null || data === void 0 ? void 0 : data.executableError);
let operationDefault = "validate";
this.operation = typeof (data === null || data === void 0 ? void 0 : data.operation) !== "undefined" ? data === null || data === void 0 ? void 0 : data.operation : operationDefault;
}
static getErrorDescription() {
return "";
}
static getExecutableErrorDescription() {
return "";
}
static getOperationDefault() {
return "validate";
}
static getOperationDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ConfigurationResult(data);
}
toJson() {
var _a, _b;
return {
'error': (_a = this.error) === null || _a === void 0 ? void 0 : _a.toJson(),
'executableError': (_b = this.executableError) === null || _b === void 0 ? void 0 : _b.toJson(),
'operation': this.operation,
};
}
clone() {
return ConfigurationResult.fromJson(this.toJson());
}
}
exports.ConfigurationResult = ConfigurationResult;
//# sourceMappingURL=ConfigurationResult.js.map