UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

42 lines 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApplicationCheck = void 0; const index_1 = require("./../index"); class ApplicationCheck { constructor(data) { let checkTypeDefault = "tsa"; this.checkType = typeof data.checkType !== "undefined" ? data.checkType : checkTypeDefault; } static getCheckTypeDefault() { return "tsa"; } static getCheckTypeDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } switch (data.checkType) { case 'executable': return index_1.ExecutableApplicationCheck.fromJson(data); case 'license': return index_1.LicenseApplicationCheck.fromJson(data); case 'signature': return index_1.SignatureApplicationCheck.fromJson(data); case 'tsa': return index_1.TsaApplicationCheck.fromJson(data); } return new ApplicationCheck(data); } toJson() { return { 'checkType': this.checkType, }; } clone() { return ApplicationCheck.fromJson(this.toJson()); } } exports.ApplicationCheck = ApplicationCheck; //# sourceMappingURL=ApplicationCheck.js.map