Commit 1689b628 authored by Michael Schimpelsberger's avatar Michael Schimpelsberger
Browse files

Erste Testversion der API ohne Datenpersistierung

parent 560b521b
......@@ -18,6 +18,11 @@ public class Student {
public Student () {};
public Student(String firstName, String lastName) {
this.firstName=firstName;
this.lastName=lastName;
}
public Student(int matrNr, String firstName, String lastName) {
this.matrNr=matrNr;
this.firstName=firstName;
......
......@@ -17,6 +17,11 @@ public class Study {
public Study() {}
public Study(String name, Map<Long, Subject> subjects) {
this.name=name;
this.subjects=subjects;
}
public Study(long studyId, String name, Map<Long, Subject> subjects) {
this.name=name;
this.studyId=studyId;
......
......@@ -10,6 +10,11 @@ public class Subject {
public Subject() {};
public Subject(String name, String info) {
this.name=name;
this.info=info;
}
public Subject(long id, String name, String info) {
this.id=id;
this.name=name;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment