lib_angar_new 2.0.39 → 2.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,4 +9,15 @@ export declare class ClsIntensity extends Serializable {
|
|
|
9
9
|
*/
|
|
10
10
|
Dic: Map<string, number>;
|
|
11
11
|
constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Конвертируем список классов ClsIntensity в json string
|
|
14
|
+
* @param listClsIntensity
|
|
15
|
+
*/
|
|
16
|
+
ArrayClsIntensityToJson(listClsIntensity: Array<ClsIntensity>): string;
|
|
17
|
+
/**
|
|
18
|
+
* Конвертируем список объектов в Array<ClsIntensity>
|
|
19
|
+
* @param arrayObject
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
ArrayObjectToListClsIntensity(arrayObject: Array<object>): Array<ClsIntensity>;
|
|
12
23
|
}
|
|
@@ -8,15 +8,42 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var ClsIntensity_1;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.ClsIntensity = void 0;
|
|
13
14
|
const ts_serializer_1 = require("ts-serializer");
|
|
14
|
-
let ClsIntensity = class ClsIntensity extends ts_serializer_1.Serializable {
|
|
15
|
+
let ClsIntensity = ClsIntensity_1 = class ClsIntensity extends ts_serializer_1.Serializable {
|
|
15
16
|
constructor() {
|
|
16
17
|
super();
|
|
17
18
|
this.Description = "";
|
|
18
19
|
this.Dic = new Map();
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Конвертируем список классов ClsIntensity в json string
|
|
23
|
+
* @param listClsIntensity
|
|
24
|
+
*/
|
|
25
|
+
ArrayClsIntensityToJson(listClsIntensity) {
|
|
26
|
+
const arrayObject = new Array();
|
|
27
|
+
listClsIntensity.forEach((item) => {
|
|
28
|
+
const row = item.serialize();
|
|
29
|
+
arrayObject.push(row);
|
|
30
|
+
});
|
|
31
|
+
return JSON.stringify(arrayObject);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Конвертируем список объектов в Array<ClsIntensity>
|
|
35
|
+
* @param arrayObject
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
ArrayObjectToListClsIntensity(arrayObject) {
|
|
39
|
+
const listClsIntensity = new Array();
|
|
40
|
+
arrayObject.forEach((item) => {
|
|
41
|
+
const clsIntensity = new ClsIntensity_1();
|
|
42
|
+
clsIntensity.deserialize(item);
|
|
43
|
+
listClsIntensity.push(clsIntensity);
|
|
44
|
+
});
|
|
45
|
+
return listClsIntensity;
|
|
46
|
+
}
|
|
20
47
|
};
|
|
21
48
|
exports.ClsIntensity = ClsIntensity;
|
|
22
49
|
__decorate([
|
|
@@ -27,7 +54,7 @@ __decorate([
|
|
|
27
54
|
(0, ts_serializer_1.SerializeProperty)({ map: "Dic", optional: true }),
|
|
28
55
|
__metadata("design:type", Map)
|
|
29
56
|
], ClsIntensity.prototype, "Dic", void 0);
|
|
30
|
-
exports.ClsIntensity = ClsIntensity = __decorate([
|
|
57
|
+
exports.ClsIntensity = ClsIntensity = ClsIntensity_1 = __decorate([
|
|
31
58
|
(0, ts_serializer_1.Serialize)({}),
|
|
32
59
|
__metadata("design:paramtypes", [])
|
|
33
60
|
], ClsIntensity);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClsIntensity.js","sourceRoot":"","sources":["ClsIntensity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClsIntensity.js","sourceRoot":"","sources":["ClsIntensity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iDAA2E;AAGpE,IAAM,YAAY,oBAAlB,MAAM,YAAa,SAAQ,4BAAY;IAa1C;QACI,KAAK,EAAE,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erializeProperty({ map: "Dic", optional: true })
|
|
15
|
-
public Dic:
|
|
15
|
+
public Dic: string;
|
|
16
16
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super();
|
|
19
19
|
this.Description = "";
|
|
20
|
-
this.Dic =
|
|
20
|
+
this.Dic = "";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Конвертируем список классов ClsIntensity в json string
|
|
25
|
+
* @param listClsIntensity
|
|
26
|
+
*/
|
|
27
|
+
ArrayClsIntensityToJson(listClsIntensity: Array<ClsIntensity>) {
|
|
28
|
+
const arrayObject: Array<object> = new Array<object>();
|
|
29
|
+
listClsIntensity.forEach((item: ClsIntensity) => {
|
|
30
|
+
const row: object = item.serialize();
|
|
31
|
+
arrayObject.push(row);
|
|
32
|
+
});
|
|
33
|
+
return JSON.stringify(arrayObject);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Конвертируем список объектов в Array<ClsIntensity>
|
|
38
|
+
* @param arrayObject
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
41
|
+
ArrayObjectToListClsIntensity(arrayObject: Array<object>): Array<ClsIntensity> {
|
|
42
|
+
const listClsIntensity: Array<ClsIntensity> = new Array<ClsIntensity>();
|
|
43
|
+
arrayObject.forEach((item: object) => {
|
|
44
|
+
const clsIntensity: ClsIntensity = new ClsIntensity();
|
|
45
|
+
clsIntensity.deserialize(item);
|
|
46
|
+
listClsIntensity.push(clsIntensity);
|
|
47
|
+
})
|
|
48
|
+
return listClsIntensity;
|
|
21
49
|
}
|
|
22
50
|
}
|