From 7c6660d755d3b47eb5867242adfcd91398568c94 Mon Sep 17 00:00:00 2001
From: Felix Schmidt <felix.schmidt@mni.thm.de>
Date: Sun, 1 Feb 2015 19:25:45 +0100
Subject: [PATCH] Added sessionType to SessionInfo Entity to evaluate public
 pool sessions in frontend.

---
 .../java/de/thm/arsnova/entities/SessionInfo.java  | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/main/java/de/thm/arsnova/entities/SessionInfo.java b/src/main/java/de/thm/arsnova/entities/SessionInfo.java
index 671211fa..45bf093c 100644
--- a/src/main/java/de/thm/arsnova/entities/SessionInfo.java
+++ b/src/main/java/de/thm/arsnova/entities/SessionInfo.java
@@ -28,13 +28,14 @@ public class SessionInfo {
 	private boolean active;
 	private String courseType;
 	private long creationTime;
-
+	private String sessionType;
+	
 	private int numQuestions;
 	private int numAnswers;
 	private int numInterposed;
 	private int numUnredInterposed;
 	private int numUnanswered;
-
+	
 	public SessionInfo(Session session) {
 		this.name = session.getName();
 		this.shortName = session.getShortName();
@@ -42,6 +43,7 @@ public class SessionInfo {
 		this.active = session.isActive();
 		this.courseType = session.getCourseType();
 		this.creationTime = session.getCreationTime();
+		this.sessionType = session.getSessionType();
 	}
 
 	public static List<SessionInfo> fromSessionList(List<Session> sessions) {
@@ -91,6 +93,14 @@ public class SessionInfo {
 	public void setCourseType(String courseType) {
 		this.courseType = courseType;
 	}
+	
+	public String getSessionType() {
+		return sessionType;
+	}
+	
+	public void setSessionType(String sessionType) {
+		this.sessionType = sessionType;
+	}
 
 	public int getNumQuestions() {
 		return numQuestions;
-- 
GitLab