Skip to content

TimeTable

Johannes Pour edited this page Oct 8, 2021 · 9 revisions

Attributes

  • entries: Array of Entry

Methods

  • .findByClassName(className: string) -> Array of Entry
    Get all Entries where className matches

  • .findByRoom(roomName: string) -> Array of Entry
    Get all Entries where roomName matches

  • .findBySubjectShort(subject: string) -> Array of Entry
    Get all Entries where subject matches (subject is the short form of the subject, so for e.g. not "English" but "E")

  • .findBySubjectLong(subject: string) -> Array of Entry
    Get all Entries where subject matches (subject is the long form of the subject, so for e.g. not "E" but "English")

  • .toJSON() -> object
    Returns a TimeTable object as a JSON representation

  • .fromJSON(data: object) -> TimeTable instance
    Create a new TimeTable instance from the JSON data

Clone this wiki locally