2020-10-16 16:13:40 +02:00
|
|
|
package com.plannaplan.responses.models;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2020-11-08 16:55:56 +01:00
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
|
|
|
|
|
@ApiModel(description = "Response shows information about groups to given course.", value = "DefaultGroupResponse")
|
2020-10-20 19:02:18 +02:00
|
|
|
public class GetCourseGroupsResponse <T> {
|
2020-10-16 16:13:40 +02:00
|
|
|
|
2020-10-20 19:02:18 +02:00
|
|
|
private List<T> lectures = new ArrayList<>();
|
|
|
|
private List<T> classes = new ArrayList<>();
|
2020-10-16 16:13:40 +02:00
|
|
|
|
2020-10-20 19:02:18 +02:00
|
|
|
public GetCourseGroupsResponse(List<T> classes, List<T> lectures ){
|
|
|
|
this.lectures = lectures;
|
|
|
|
this.classes = classes;
|
2020-10-16 16:13:40 +02:00
|
|
|
}
|
|
|
|
|
2020-10-20 19:02:18 +02:00
|
|
|
public List<T> getClasses() {
|
2020-10-16 16:13:40 +02:00
|
|
|
return this.classes;
|
|
|
|
}
|
|
|
|
|
2020-10-20 19:02:18 +02:00
|
|
|
public List<T> getLectures() {
|
2020-10-16 16:13:40 +02:00
|
|
|
return this.lectures;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|