r2-lcp-js
Version:
Readium 2 LCP bits for NodeJS (TypeScript)
53 lines • 1.87 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Link = void 0;
var tslib_1 = require("tslib");
var ta_json_x_1 = require("ta-json-x");
var Link = (function () {
function Link() {
}
Link.prototype.HasRel = function (rel) {
return this.Rel === rel;
};
Link.prototype.SetRel = function (rel) {
this.Rel = rel;
};
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("length"),
tslib_1.__metadata("design:type", Number)
], Link.prototype, "Length", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("href"),
tslib_1.__metadata("design:type", String)
], Link.prototype, "Href", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("title"),
tslib_1.__metadata("design:type", String)
], Link.prototype, "Title", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("type"),
tslib_1.__metadata("design:type", String)
], Link.prototype, "Type", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("templated"),
tslib_1.__metadata("design:type", Boolean)
], Link.prototype, "Templated", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("profile"),
tslib_1.__metadata("design:type", String)
], Link.prototype, "Profile", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("hash"),
tslib_1.__metadata("design:type", String)
], Link.prototype, "Hash", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("rel"),
tslib_1.__metadata("design:type", String)
], Link.prototype, "Rel", void 0);
Link = tslib_1.__decorate([
(0, ta_json_x_1.JsonObject)()
], Link);
return Link;
}());
exports.Link = Link;
//# sourceMappingURL=lcp-link.js.map