Exchange name
This commit is contained in:
parent
20f52746b5
commit
20a6db61cc
@ -16,6 +16,7 @@ public class ExchangeResponse {
|
|||||||
private GroupDefaultResponse ownedAssignment;
|
private GroupDefaultResponse ownedAssignment;
|
||||||
@ApiModelProperty(value = "Group that user want to get")
|
@ApiModelProperty(value = "Group that user want to get")
|
||||||
private GroupDefaultResponse desiredGroup;
|
private GroupDefaultResponse desiredGroup;
|
||||||
|
private String courseName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* creat new instance
|
* creat new instance
|
||||||
@ -26,6 +27,14 @@ public class ExchangeResponse {
|
|||||||
this.id = exchange.getId();
|
this.id = exchange.getId();
|
||||||
this.ownedAssignment = new GroupDefaultResponse(exchange.getOwnedAssignment().getGroup());
|
this.ownedAssignment = new GroupDefaultResponse(exchange.getOwnedAssignment().getGroup());
|
||||||
this.desiredGroup = new GroupDefaultResponse(exchange.getDesiredAssignment());
|
this.desiredGroup = new GroupDefaultResponse(exchange.getDesiredAssignment());
|
||||||
|
this.courseName = exchange.getOwnedAssignment().getGroup().getCourseId().getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return name of course related to exchange
|
||||||
|
*/
|
||||||
|
public String getCourseName() {
|
||||||
|
return courseName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user