Compare commits
2 Commits
api-fileds
...
capacity-s
Author | SHA1 | Date | |
---|---|---|---|
63def650c9 | |||
a201bcc581 |
@ -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);
|
||||
|
Reference in New Issue
Block a user