Merge pull request 'Added type into AssignmentDetailedResponse.java' (#47) from fixed-adding-type into master

Reviewed-on: http://git.plannaplan.pl/filipizydorczyk/backend/pulls/47
This commit is contained in:
filipizydorczyk 2021-01-19 09:11:24 +01:00
commit 5ec41fa5d0
1 changed files with 10 additions and 1 deletions

View File

@ -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;
}
/**