diff --git a/js/Schedule.js b/js/Schedule.js index ff5fee0..46bafac 100644 --- a/js/Schedule.js +++ b/js/Schedule.js @@ -61,10 +61,11 @@ var Schedule = class { constructor(scheduleXml){ this.schedule = scheduleXml.children("schedule"); - this.conf.title = this.schedule.children("conference").children("title").text(); - this.conf.start = this.schedule.children("conference").children("start").text(); - this.conf.end = this.schedule.children("conference").children("end").text(); - this.events = this.getEvents(); + this.conf.version = this.schedule.children("version").text(); + this.conf.title = this.schedule.children("conference").children("title").text(); + this.conf.start = this.schedule.children("conference").children("start").text(); + this.conf.end = this.schedule.children("conference").children("end").text(); + this.events = this.getEvents(); } /** @@ -74,6 +75,12 @@ var Schedule = class { this.now = time; } + /** + * @return String the schedule version + */ + getScheduleVersion(){ + return this.conf.version ; + } /** * @return String the schedule title */