ecoledirecte.js
Version:
Good-looking client for EcoleDirecte's private API.
29 lines (28 loc) • 912 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimelineEvent = exports.TimelineElem = void 0;
const ExpandedB64_1 = require("./ExpandedB64");
class TimelineElem {
constructor(o) {
this.date = new Date(o.date);
this.type = o.typeElement;
this.id = o.idElement;
this.title = o.titre;
this.subtitle = o.soustitre;
this.content = o.contenu;
this._raw = o;
}
}
exports.TimelineElem = TimelineElem;
class TimelineEvent {
constructor(o) {
this.id = o.id;
this.title = o.libelle;
this.description = new ExpandedB64_1.ExpandedBase64(o.description);
this.start = new Date(o.dateDebut + " " + (o.heureDebut || ""));
this.end = new Date(o.dateFin + " " + (o.heureFin || ""));
this.cibles = o.cibles;
this._raw = o;
}
}
exports.TimelineEvent = TimelineEvent;