scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
26 lines (25 loc) • 822 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResumeMonthEntity = void 0;
var ResumeMonthEntity = /** @class */ (function () {
// #endregion Properties (5)
// #region Constructors (1)
function ResumeMonthEntity(data) {
// #region Properties (5)
this.average = 0;
this.count = 0;
this.days = [];
this.month = new Date().getUTCMonth();
this.monthName = new Date().toLocaleString('pt-BR', { month: 'long' });
this.total = 0;
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return ResumeMonthEntity;
}());
exports.ResumeMonthEntity = ResumeMonthEntity;