Skip to content
Snippets Groups Projects
Commit 9864756f authored by Felix Schmidt's avatar Felix Schmidt
Browse files

Attribute 'numberOfDots' is stored in database.

parent 68e70b59
Branches
Tags
No related merge requests found
...@@ -280,7 +280,8 @@ public class CouchDBDao implements IDatabaseDao { ...@@ -280,7 +280,8 @@ public class CouchDBDao implements IDatabaseDao {
q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers()); q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers());
q.put("cvIsColored", question.getCvIsColored()); q.put("cvIsColored", question.getCvIsColored());
q.put("gridLineColor", question.getGridLineColor()); q.put("gridLineColor", question.getGridLineColor());
q.put("numberOfDots", question.getNumberOfDots());
return q; return q;
} }
...@@ -315,6 +316,7 @@ public class CouchDBDao implements IDatabaseDao { ...@@ -315,6 +316,7 @@ public class CouchDBDao implements IDatabaseDao {
q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers()); q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers());
q.put("cvIsColored", question.getCvIsColored()); q.put("cvIsColored", question.getCvIsColored());
q.put("gridLineColor", question.getGridLineColor()); q.put("gridLineColor", question.getGridLineColor());
q.put("numberOfDots", question.getNumberOfDots());
database.saveDocument(q); database.saveDocument(q);
question.set_rev(q.getRev()); question.set_rev(q.getRev());
......
...@@ -61,6 +61,7 @@ public class Question { ...@@ -61,6 +61,7 @@ public class Question {
private int thresholdCorrectAnswers; private int thresholdCorrectAnswers;
private boolean cvIsColored; private boolean cvIsColored;
private String gridLineColor; private String gridLineColor;
private int numberOfDots;
public final String getType() { public final String getType() {
return type; return type;
...@@ -365,6 +366,14 @@ public class Question { ...@@ -365,6 +366,14 @@ public class Question {
public void setGridLineColor(String gridLineColor) { public void setGridLineColor(String gridLineColor) {
this.gridLineColor = gridLineColor; this.gridLineColor = gridLineColor;
} }
public int getNumberOfDots() {
return numberOfDots;
}
public void setNubmerOfDots(int numberOfDots) {
this.numberOfDots = numberOfDots;
}
@Override @Override
public final String toString() { public final String toString() {
......
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