From fa59845be86c6a34032893b36af57efcce5f3128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Mon, 18 Jan 2021 22:09:10 +0100 Subject: [PATCH] Added type into AssignmentDetailedResponse.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .../responses/models/AssignmentDetailedResponse.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/restservice/src/main/java/com/plannaplan/responses/models/AssignmentDetailedResponse.java b/restservice/src/main/java/com/plannaplan/responses/models/AssignmentDetailedResponse.java index 0c86f5b..bbb2490 100755 --- a/restservice/src/main/java/com/plannaplan/responses/models/AssignmentDetailedResponse.java +++ b/restservice/src/main/java/com/plannaplan/responses/models/AssignmentDetailedResponse.java @@ -13,6 +13,7 @@ public class AssignmentDetailedResponse { private String time; private String endTime; private String lecturer; + private String type; /** * @param assignment Assignment instance to map @@ -24,7 +25,15 @@ public class AssignmentDetailedResponse { this.day = group.getDay().label; this.time = group.getTimeString(); this.endTime = group.getEndTimeString(); - this.lecturer = group.getLecturer().toString(); + this.lecturer = group.getLecturer().toString(); + this.type = group.getType().toString(); + } + + /** + * @return type of the lecture + */ + public String getType() { + return type; } /**