You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
2.5 KiB
111 lines
2.5 KiB
/**
|
|
* 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 <code>Exam</code>.
|
|
* @alias module:model/Exam
|
|
* @class
|
|
*/
|
|
|
|
constructor() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* Constructs a <code>Exam</code> from a plain JavaScript object, optionally creating a new instance.
|
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> 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 <code>Exam</code> 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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|