Added time to in group resonse
This commit is contained in:
@ -21,6 +21,9 @@ public class GroupDefaultResponse {
|
||||
@ApiModelProperty(value = "Value shows time when the course takes.")
|
||||
private String time;
|
||||
|
||||
@ApiModelProperty(value = "Value shows time when the course ends.")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "Value shows degree, name and surname.")
|
||||
private String lecturer;
|
||||
|
||||
@ -37,6 +40,7 @@ public class GroupDefaultResponse {
|
||||
this.id = group.getId() != null ? group.getId() : null;
|
||||
this.day = group.getDay() != null ? group.getDay().label : -1;
|
||||
this.time = group.getTimeString() != null ? group.getTimeString() : "";
|
||||
this.endTime = group.getEndTimeString() != null ? group.getEndTimeString() : "";
|
||||
this.lecturer = group.getLecturer() != null ? group.getLecturer().toString() : "";
|
||||
this.room = group.getRoom() != null ? group.getRoom() : "";
|
||||
this.type = group.getType() != null ? group.getType() : null;
|
||||
@ -67,6 +71,10 @@ public class GroupDefaultResponse {
|
||||
return time;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public int getDay() {
|
||||
return day;
|
||||
}
|
||||
|
Reference in New Issue
Block a user