Database revolution

- added in fitbitData an interface for keeping track of date
- removed annoying IOException, now will write a LOG
- same thing in sensor
- fixed main and adapted to new Database system
- Database now has Local or Remote (to implement)
This commit is contained in:
2018-09-10 21:32:09 +02:00
parent 662fb40df3
commit a4c6c095c6
13 changed files with 399 additions and 312 deletions

View File

@@ -8,9 +8,9 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Steps {
public class Steps extends FitbitData {
private int steps=0;
private int steps = 0;
@JsonProperty("activities-steps")
public void setSteps(Map<String, String>[] array) {
@@ -22,7 +22,7 @@ public class Steps {
if(map.get("dateTime").equals(strDate))
steps = Integer.parseInt(map.get("value"));
}
public int getSteps() { return steps; }
public void setSteps(int steps) { this.steps = steps; }
public int getSteps() { return steps; }
}