UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

79 lines 3.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ReplyStateAnnotation = void 0; class ReplyStateAnnotation { constructor(data) { let creatorDefault = ""; this.creator = typeof (data === null || data === void 0 ? void 0 : data.creator) !== "undefined" ? data === null || data === void 0 ? void 0 : data.creator : creatorDefault; 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 pageDefault = 1; this.page = typeof (data === null || data === void 0 ? void 0 : data.page) !== "undefined" ? data === null || data === void 0 ? void 0 : data.page : pageDefault; let replyStateDefault = "none"; this.replyState = typeof (data === null || data === void 0 ? void 0 : data.replyState) !== "undefined" ? data === null || data === void 0 ? void 0 : data.replyState : replyStateDefault; let replyToDefault = ""; this.replyTo = typeof (data === null || data === void 0 ? void 0 : data.replyTo) !== "undefined" ? data === null || data === void 0 ? void 0 : data.replyTo : replyToDefault; let subjectDefault = ""; this.subject = typeof (data === null || data === void 0 ? void 0 : data.subject) !== "undefined" ? data === null || data === void 0 ? void 0 : data.subject : subjectDefault; } static getCreatorDefault() { return ""; } static getCreatorDescription() { return "Used to specify the author of the annotation."; } static getNameDefault() { return ""; } static getNameDescription() { return "Used to specify the name of the annotation."; } static getPageDefault() { return 1; } static getPageDescription() { return "Set the number of the page, the annotation shall be placed on.\n\n**Important:** A reply shall always be placed on the same page as it's target annotation. This is mostly providing a hint where to find the selected annotation."; } static getPageMin() { return 1; } static getReplyStateDefault() { return "none"; } static getReplyStateDescription() { return "Adds a mark for further processing suggestions\/instructions to a commenting annotation.\n\n* accepted = The user agrees with the change.\n* rejected = The user disagrees with the change.\n* cancelled = The change has been cancelled.\n* completed = The change has been completed.\n* none = The user did not set a state."; } static getReplyToDefault() { return ""; } static getReplyToDescription() { return "Selects the object id of the annotation, that this annotation shall be a reply to. The object id shall be given as a String that may contain either:\n\n* The numeric object ID itself\n* The object ID followed by the generation number, separated by a space"; } static getSubjectDefault() { return ""; } static getSubjectDescription() { return "Used to specify the subject of the annotation."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ReplyStateAnnotation(data); } toJson() { return { 'creator': this.creator, 'name': this.name, 'page': this.page, 'replyState': this.replyState, 'replyTo': this.replyTo, 'subject': this.subject, }; } clone() { return ReplyStateAnnotation.fromJson(this.toJson()); } } exports.ReplyStateAnnotation = ReplyStateAnnotation; //# sourceMappingURL=ReplyStateAnnotation.js.map