Skip to content
Snippets Groups Projects
Commit 24fd812b authored by Daniel Vogel's avatar Daniel Vogel Committed by Daniel Gerhardt
Browse files

Added creation time to SessionInfo

parent e72dc455
No related merge requests found
...@@ -27,6 +27,7 @@ public class SessionInfo { ...@@ -27,6 +27,7 @@ public class SessionInfo {
private String keyword; private String keyword;
private boolean active; private boolean active;
private String courseType; private String courseType;
private long creationTime;
private int numQuestions; private int numQuestions;
private int numAnswers; private int numAnswers;
...@@ -39,6 +40,7 @@ public class SessionInfo { ...@@ -39,6 +40,7 @@ public class SessionInfo {
this.keyword = session.getKeyword(); this.keyword = session.getKeyword();
this.active = session.isActive(); this.active = session.isActive();
this.courseType = session.getCourseType(); this.courseType = session.getCourseType();
this.creationTime = session.getCreationTime();
} }
public static List<SessionInfo> fromSessionList(List<Session> sessions) { public static List<SessionInfo> fromSessionList(List<Session> sessions) {
...@@ -120,4 +122,12 @@ public class SessionInfo { ...@@ -120,4 +122,12 @@ public class SessionInfo {
public void setNumUnanswered(int numUnanswered) { public void setNumUnanswered(int numUnanswered) {
this.numUnanswered = numUnanswered; this.numUnanswered = numUnanswered;
} }
public long getCreationTime() {
return creationTime;
}
public void setCreationTime(long creationTime) {
this.creationTime = creationTime;
}
} }
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