Home Reference Source
import Course from 'magister.js/src/course.js'
public class | source

Course

Extends:

MagisterThing → Course

Member Summary

Public Members
public get
public
public
public

group: {description: String, id: Number, LocatieId: Number}

The group of this course, e.g: { description: "Klas 6v3", id: 420, locationId: 0 }

public
public

The school year of this course, e.g: '1617'

public
public

type: {description: String, id: Number}

Basic type information of this course, e.g: { description: "VWO 6", id: 420 }

Method Summary

Public Methods
public
public

grades(options: Object): Promise<Grade[]>

Inherited Summary

From class MagisterThing
public

Public Members

public get current: Boolean source

public curricula: String[] source

public end: Date source

public group: {description: String, id: Number, LocatieId: Number} source

The group of this course, e.g: { description: "Klas 6v3", id: 420, locationId: 0 }

public id: String source

public schoolPeriod: String source

The school year of this course, e.g: '1617'

public start: Date source

public type: {description: String, id: Number} source

Basic type information of this course, e.g: { description: "VWO 6", id: 420 }

Public Methods

public classes(): Promise<Class[]> source

Return:

Promise<Class[]>

public grades(options: Object): Promise<Grade[]> source

Params:

NameTypeAttributeDescription
options Object
  • optional
  • default: {}
options.fillGrades Boolean
  • optional
  • default: true

Return:

Promise<Grade[]>