This commit is contained in:
Filip Izydorczyk 2021-01-22 16:46:53 +01:00
parent e688f8b71d
commit a201bcc581
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@ public class AssignmentResponse {
* places
*/
public AssignmentResponse(Course course, Assignment lecture, Assignment classes, HashMap<Long, Integer> ammounts) {
this.id = course.getId();
this.name = course.getName();
this.classes = new GroupWithCapacityResponse(classes, ammounts.get(classes.getGroup().getId()));
this.lecture = new GroupWithCapacityResponse(lecture, ammounts.get(lecture.getGroup().getId()));
@ -106,6 +107,7 @@ public class AssignmentResponse {
* @param classes class Groups entity
*/
public AssignmentResponse(Course course, Assignment lecture, Assignment classes) {
this.id = course.getId();
this.name = course.getName();
this.classes = new GroupWithCapacityResponse(classes);
this.lecture = new GroupWithCapacityResponse(lecture);