scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
33 lines (32 loc) • 984 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WaServerEntity = void 0;
var enums_1 = require("../enums");
var WaServerEntity = /** @class */ (function () {
// #endregion Properties (12)
// #region Constructors (1)
function WaServerEntity(data) {
// #region Properties (12)
this.active = false;
this.baseUrl = '';
this.createdAt = new Date();
this.globalApiKey = '';
this.id = '';
this.instances = [];
this.name = '';
this.sessions = 0;
this.stack = '';
this.status = enums_1.EWaServerStatus.STOPPED;
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 WaServerEntity;
}());
exports.WaServerEntity = WaServerEntity;