From 11d38ec0adced53434f7e0944b16845d47af090d Mon Sep 17 00:00:00 2001
From: agrt56 <andreas.gaertner@mni.thm.de>
Date: Mon, 14 Sep 2015 01:05:14 +0200
Subject: [PATCH] Task #16972: Add use case scenarios to SessionFeature entity.

---
 .../thm/arsnova/entities/SessionFeature.java  | 61 +++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/src/main/java/de/thm/arsnova/entities/SessionFeature.java b/src/main/java/de/thm/arsnova/entities/SessionFeature.java
index bc564f81..842f3658 100644
--- a/src/main/java/de/thm/arsnova/entities/SessionFeature.java
+++ b/src/main/java/de/thm/arsnova/entities/SessionFeature.java
@@ -25,6 +25,13 @@ import io.swagger.annotations.ApiModelProperty;
 @ApiModel(value = "session feature", description = "the Session feature API")
 public class SessionFeature {
 
+	private boolean custom = true;
+	private boolean clicker = false;
+	private boolean peerGrading = false;
+	private boolean liveFeedback = false;
+	private boolean flashcard = false;
+	private boolean total = false;
+
 	private boolean jitt = true;
 	private boolean lecture = true;
 	private boolean feedback = true;
@@ -35,6 +42,12 @@ public class SessionFeature {
 	public SessionFeature(SessionFeature features) {
 		this();
 		if (features != null) {
+			this.custom = features.custom;
+			this.clicker = features.clicker;
+			this.peerGrading = features.peerGrading;
+			this.liveFeedback = features.liveFeedback;
+			this.flashcard = features.flashcard;
+			this.total = features.total;
 			this.lecture = features.lecture;
 			this.jitt = features.jitt;
 			this.feedback = features.feedback;
@@ -99,4 +112,52 @@ public class SessionFeature {
 		this.learningProgress = learningProgress;
 	}
 
+	public boolean isCustom() {
+		return custom;
+	}
+
+	public void setCustom(boolean custom) {
+		this.custom = custom;
+	}
+
+	public boolean isClicker() {
+		return clicker;
+	}
+
+	public void setClicker(boolean clicker) {
+		this.clicker = clicker;
+	}
+
+	public boolean isPeerGrading() {
+		return peerGrading;
+	}
+
+	public void setPeerGrading(boolean peerGrading) {
+		this.peerGrading = peerGrading;
+	}
+
+	public boolean isFlashcard() {
+		return flashcard;
+	}
+
+	public void setFlashcard(boolean flashcard) {
+		this.flashcard = flashcard;
+	}
+
+	public boolean isTotal() {
+		return total;
+	}
+
+	public void setTotal(boolean total) {
+		this.total = total;
+	}
+
+	public boolean isLiveFeedback() {
+		return liveFeedback;
+	}
+
+	public void setLiveFeedback(boolean liveFeedback) {
+		this.liveFeedback = liveFeedback;
+	}
+
 }
-- 
GitLab