Skip to content
Snippets Groups Projects
Commit b4dece4c authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Merge remote-tracking branch 'grid-team/master' into integration

parents 97e5d817 9988dc35
Branches
Tags
No related merge requests found
...@@ -283,6 +283,7 @@ public class CouchDBDao implements IDatabaseDao { ...@@ -283,6 +283,7 @@ public class CouchDBDao implements IDatabaseDao {
q.put("toggleFieldsLeft", question.getToggleFieldsLeft()); q.put("toggleFieldsLeft", question.getToggleFieldsLeft());
q.put("numClickableFields", question.getNumClickableFields()); q.put("numClickableFields", question.getNumClickableFields());
q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers()); q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers());
q.put("cvIsColored", question.getCvIsColored());
return q; return q;
} }
...@@ -316,6 +317,7 @@ public class CouchDBDao implements IDatabaseDao { ...@@ -316,6 +317,7 @@ public class CouchDBDao implements IDatabaseDao {
q.put("toggleFieldsLeft", question.getToggleFieldsLeft()); q.put("toggleFieldsLeft", question.getToggleFieldsLeft());
q.put("numClickableFields", question.getNumClickableFields()); q.put("numClickableFields", question.getNumClickableFields());
q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers()); q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers());
q.put("cvIsColored", question.getCvIsColored());
database.saveDocument(q); database.saveDocument(q);
question.set_rev(q.getRev()); question.set_rev(q.getRev());
......
...@@ -59,6 +59,7 @@ public class Question { ...@@ -59,6 +59,7 @@ public class Question {
private boolean toggleFieldsLeft; private boolean toggleFieldsLeft;
private int numClickableFields; private int numClickableFields;
private int thresholdCorrectAnswers; private int thresholdCorrectAnswers;
private boolean cvIsColored;
public final String getType() { public final String getType() {
return type; return type;
...@@ -196,6 +197,14 @@ public class Question { ...@@ -196,6 +197,14 @@ public class Question {
this.showStatistic = showStatistic; this.showStatistic = showStatistic;
} }
public boolean getCvIsColored() {
return cvIsColored;
}
public void setCvIsColored(boolean cvIsColored) {
this.cvIsColored = cvIsColored;
}
public boolean isShowAnswer() { public boolean isShowAnswer() {
return showAnswer; return showAnswer;
} }
...@@ -348,6 +357,7 @@ public class Question { ...@@ -348,6 +357,7 @@ public class Question {
this.thresholdCorrectAnswers = thresholdCorrectAnswers; this.thresholdCorrectAnswers = thresholdCorrectAnswers;
} }
@Override @Override
public final String toString() { public final String toString() {
return "Question type '" + type + "': " + subject + ";\n" + text + possibleAnswers; return "Question type '" + type + "': " + subject + ";\n" + text + possibleAnswers;
......
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