From 6a19b0f6fa100a8f788b91cd03ab4f437164f5f6 Mon Sep 17 00:00:00 2001
From: Christoph Thelen <christoph.thelen@mni.thm.de>
Date: Wed, 17 Oct 2012 12:04:53 +0200
Subject: [PATCH] Include question id in responses

---
 .../thm/arsnova/socket/message/Question.java   | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/main/java/de/thm/arsnova/socket/message/Question.java b/src/main/java/de/thm/arsnova/socket/message/Question.java
index f4acd6ed..7882c666 100644
--- a/src/main/java/de/thm/arsnova/socket/message/Question.java
+++ b/src/main/java/de/thm/arsnova/socket/message/Question.java
@@ -33,6 +33,8 @@ public class Question {
 	private String session;
 	private int number;	
 	private int duration;
+	private String _id;
+	private String _rev;
 	
 	
 	public String getType() {
@@ -131,6 +133,22 @@ public class Question {
 		this.duration = duration;
 	}
 
+	public String get_id() {
+		return _id;
+	}
+
+	public void set_id(String _id) {
+		this._id = _id;
+	}
+
+	public String get_rev() {
+		return _rev;
+	}
+
+	public void set_rev(String _rev) {
+		this._rev = _rev;
+	}
+
 	@Override
 	public String toString() {
 		return "Question type '" + this.questionType + "': " + this.subject + ";\n" + this.text +
-- 
GitLab