soreLatestEntry: void

master
adb 4 years ago
parent 8063c611da
commit ac1c027a17

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

Loading…
Cancel
Save