UNPKG

1.79 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Encrypted = void 0;
4const tslib_1 = require("tslib");
5const ta_json_x_1 = require("ta-json-x");
6let Encrypted = class Encrypted {
7 constructor() {
8 this.DecryptedLengthBeforeInflate = -1;
9 this.CypherBlockPadding = -1;
10 }
11 get OriginalLength() {
12 return typeof this.OriginalLength2 !== "undefined" ? this.OriginalLength2 : this.OriginalLength1;
13 }
14 set OriginalLength(length) {
15 if (typeof length !== "undefined") {
16 this.OriginalLength1 = undefined;
17 this.OriginalLength2 = length;
18 }
19 }
20};
21tslib_1.__decorate([
22 (0, ta_json_x_1.JsonProperty)("scheme"),
23 tslib_1.__metadata("design:type", String)
24], Encrypted.prototype, "Scheme", void 0);
25tslib_1.__decorate([
26 (0, ta_json_x_1.JsonProperty)("profile"),
27 tslib_1.__metadata("design:type", String)
28], Encrypted.prototype, "Profile", void 0);
29tslib_1.__decorate([
30 (0, ta_json_x_1.JsonProperty)("algorithm"),
31 tslib_1.__metadata("design:type", String)
32], Encrypted.prototype, "Algorithm", void 0);
33tslib_1.__decorate([
34 (0, ta_json_x_1.JsonProperty)("compression"),
35 tslib_1.__metadata("design:type", String)
36], Encrypted.prototype, "Compression", void 0);
37tslib_1.__decorate([
38 (0, ta_json_x_1.JsonProperty)("originalLength"),
39 tslib_1.__metadata("design:type", Number)
40], Encrypted.prototype, "OriginalLength2", void 0);
41tslib_1.__decorate([
42 (0, ta_json_x_1.JsonProperty)("original-length"),
43 tslib_1.__metadata("design:type", Object)
44], Encrypted.prototype, "OriginalLength1", void 0);
45Encrypted = tslib_1.__decorate([
46 (0, ta_json_x_1.JsonObject)()
47], Encrypted);
48exports.Encrypted = Encrypted;
49//# sourceMappingURL=metadata-encrypted.js.map
\No newline at end of file