UNPKG

scheunemann-interfaces

Version:
23 lines (22 loc) 697 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MonitorEntity = void 0; var MonitorEntity = /** @class */ (function () { function MonitorEntity(data) { // #region Properties (9) this.id = ''; this.companies = [{ id: '', name: '' }]; this.total = 0; this.createdAt = new Date(); this.app = { appId: '', name: '', version: '' }; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return MonitorEntity; }()); exports.MonitorEntity = MonitorEntity;