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:
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user