node-brawlstars
Version:
Javascript library to communicate with BrawlStars API
26 lines (25 loc) • 779 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScheduledEvent = void 0;
const utils_1 = require("../utils");
class ScheduledEvent {
get startTimeDate() {
return utils_1.DateUtils.FromString(this.startTime);
}
get endTimeDate() {
return utils_1.DateUtils.FromString(this.startTime);
}
constructor(raw) {
this.startTime = raw.startTime;
this.endTime = raw.endTime;
this.slotId = raw.slotId;
this.event = raw.event;
}
}
exports.ScheduledEvent = ScheduledEvent;
(function (ScheduledEvent) {
function FromRaw(raw) {
return new ScheduledEvent(raw);
}
ScheduledEvent.FromRaw = FromRaw;
})(ScheduledEvent || (exports.ScheduledEvent = ScheduledEvent = {}));