|
|
|
@ -31,11 +31,10 @@ public class DataStoreBot {
|
|
|
|
|
}
|
|
|
|
|
}, 0, seconds, TimeUnit.SECONDS);
|
|
|
|
|
}
|
|
|
|
|
public Runnable storeLatestEntry() throws IOException, ParseException {
|
|
|
|
|
public void storeLatestEntry() throws IOException, ParseException {
|
|
|
|
|
JSONArray APIData = this.api.getJSONObject();
|
|
|
|
|
JSONObject entry = (JSONObject) APIData.get(0);
|
|
|
|
|
this.storeEntry(entry);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
public void storeEntry(JSONObject entry) throws IOException {
|
|
|
|
|
System.out.println("entry => ");
|
|
|
|
|