scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
35 lines (34 loc) • 1.05 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeviceEntity = void 0;
var os_enum_1 = require("../../general/enums/os.enum");
var DeviceEntity = /** @class */ (function () {
// #endregion Properties (14)
// #region Constructors (1)
function DeviceEntity(data) {
// #region Properties (14)
this.active = false;
this.companyId = '';
this.containerId = '';
this.createdAt = new Date();
this.deviceId = '';
this.os = os_enum_1.EOs.UNKNOWN;
this.installedApps = [];
this.osVersion = '';
this.id = '';
this.key = '';
this.lastAccess = new Date();
this.name = '';
this.tags = [];
this.updatedAt = new Date();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return DeviceEntity;
}());
exports.DeviceEntity = DeviceEntity;