UNPKG

xiot-core-spec-ts

Version:
19 lines (18 loc) 710 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const PropertyImage_1 = require("../../typedef/image/PropertyImage"); const Spec_1 = require("../../typedef/constant/Spec"); const PropertyDefinitionCodec_1 = require("../definition/PropertyDefinitionCodec"); class PropertyImageCodec { static decodeArray(array) { const list = []; if (array != null) { for (const o of array) { const p = new PropertyImage_1.PropertyImage(o[Spec_1.Spec.IID], PropertyDefinitionCodec_1.PropertyDefinitionCodec.decode(o)); list.push(p); } } return list; } } exports.PropertyImageCodec = PropertyImageCodec;