GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 9c670fee authored by Andreas Gärtner's avatar Andreas Gärtner

Changed type of points in IliasAnswer from int to double.

parent dbd3edd2
......@@ -2,9 +2,9 @@ package de.thm.arsnova.connector.model;
public class IliasAnswer {
private String text;
private int points;
private double points;
public IliasAnswer(String text, int points) {
public IliasAnswer(String text, double points) {
this.text = text;
this.points = points;
}
......@@ -15,7 +15,7 @@ public class IliasAnswer {
return text;
}
public int getPoints() {
public double getPoints() {
return points;
}
}
......@@ -266,7 +266,7 @@ public class IliasConnectorDaoImpl implements UniRepDao {
public IliasAnswer mapRow(final ResultSet resultSet, final int row) throws SQLException {
return new IliasAnswer(
resultSet.getString("answertext"),
resultSet.getInt("points")
resultSet.getDouble("points")
);
}
}
......
Markdown is supported
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