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