/** * Organizer * Dies ist eine API, die es ermöglicht Daten zu Stunden-, Vertretungs-, oder Klausurplänen zu erhalten. * * OpenAPI spec version: 1.0.0 * Contact: info@jonasfranz.software * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * */ import ApiClient from '../ApiClient'; import Lesson from './Lesson'; /** * The Exam model module. * @module model/Exam * @version 1.0.0 */ export default class Exam { /** * Constructs a new Exam. * @alias module:model/Exam * @class */ constructor() { } /** * Constructs a Exam from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/Exam} obj Optional instance to populate. * @return {module:model/Exam} The populated Exam instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new Exam(); if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('date')) { obj['date'] = ApiClient.convertToType(data['date'], 'Date'); } if (data.hasOwnProperty('startPeriod')) { obj['startPeriod'] = ApiClient.convertToType(data['startPeriod'], 'Number'); } if (data.hasOwnProperty('endPeriod')) { obj['endPeriod'] = ApiClient.convertToType(data['endPeriod'], 'Number'); } if (data.hasOwnProperty('lesson')) { obj['lesson'] = Lesson.constructFromObject(data['lesson']); } } return obj; } /** * @member {Number} id */ id = undefined; /** * @member {Date} date */ date = undefined; /** * The period of the day where the exam starts * @member {Number} startPeriod */ startPeriod = undefined; /** * The period of the day where the exam ends * @member {Number} endPeriod */ endPeriod = undefined; /** * @member {module:model/Lesson} lesson */ lesson = undefined; }