Skip to content
Snippets Groups Projects
Commit 7c6660d7 authored by Felix Schmidt's avatar Felix Schmidt
Browse files

Added sessionType to SessionInfo Entity to evaluate public pool sessions in frontend.

parent 767d7545
No related merge requests found
...@@ -28,13 +28,14 @@ public class SessionInfo { ...@@ -28,13 +28,14 @@ public class SessionInfo {
private boolean active; private boolean active;
private String courseType; private String courseType;
private long creationTime; private long creationTime;
private String sessionType;
private int numQuestions; private int numQuestions;
private int numAnswers; private int numAnswers;
private int numInterposed; private int numInterposed;
private int numUnredInterposed; private int numUnredInterposed;
private int numUnanswered; private int numUnanswered;
public SessionInfo(Session session) { public SessionInfo(Session session) {
this.name = session.getName(); this.name = session.getName();
this.shortName = session.getShortName(); this.shortName = session.getShortName();
...@@ -42,6 +43,7 @@ public class SessionInfo { ...@@ -42,6 +43,7 @@ public class SessionInfo {
this.active = session.isActive(); this.active = session.isActive();
this.courseType = session.getCourseType(); this.courseType = session.getCourseType();
this.creationTime = session.getCreationTime(); this.creationTime = session.getCreationTime();
this.sessionType = session.getSessionType();
} }
public static List<SessionInfo> fromSessionList(List<Session> sessions) { public static List<SessionInfo> fromSessionList(List<Session> sessions) {
...@@ -91,6 +93,14 @@ public class SessionInfo { ...@@ -91,6 +93,14 @@ public class SessionInfo {
public void setCourseType(String courseType) { public void setCourseType(String courseType) {
this.courseType = courseType; this.courseType = courseType;
} }
public String getSessionType() {
return sessionType;
}
public void setSessionType(String sessionType) {
this.sessionType = sessionType;
}
public int getNumQuestions() { public int getNumQuestions() {
return numQuestions; return numQuestions;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment