fix
This commit is contained in:
parent
e688f8b71d
commit
a201bcc581
@ -95,6 +95,7 @@ public class AssignmentResponse {
|
|||||||
* places
|
* places
|
||||||
*/
|
*/
|
||||||
public AssignmentResponse(Course course, Assignment lecture, Assignment classes, HashMap<Long, Integer> ammounts) {
|
public AssignmentResponse(Course course, Assignment lecture, Assignment classes, HashMap<Long, Integer> ammounts) {
|
||||||
|
this.id = course.getId();
|
||||||
this.name = course.getName();
|
this.name = course.getName();
|
||||||
this.classes = new GroupWithCapacityResponse(classes, ammounts.get(classes.getGroup().getId()));
|
this.classes = new GroupWithCapacityResponse(classes, ammounts.get(classes.getGroup().getId()));
|
||||||
this.lecture = new GroupWithCapacityResponse(lecture, ammounts.get(lecture.getGroup().getId()));
|
this.lecture = new GroupWithCapacityResponse(lecture, ammounts.get(lecture.getGroup().getId()));
|
||||||
@ -106,6 +107,7 @@ public class AssignmentResponse {
|
|||||||
* @param classes class Groups entity
|
* @param classes class Groups entity
|
||||||
*/
|
*/
|
||||||
public AssignmentResponse(Course course, Assignment lecture, Assignment classes) {
|
public AssignmentResponse(Course course, Assignment lecture, Assignment classes) {
|
||||||
|
this.id = course.getId();
|
||||||
this.name = course.getName();
|
this.name = course.getName();
|
||||||
this.classes = new GroupWithCapacityResponse(classes);
|
this.classes = new GroupWithCapacityResponse(classes);
|
||||||
this.lecture = new GroupWithCapacityResponse(lecture);
|
this.lecture = new GroupWithCapacityResponse(lecture);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user