|
|
@ -4,7 +4,6 @@ import org.json.simple.JSONArray;
|
|
|
|
import org.json.simple.JSONObject;
|
|
|
|
import org.json.simple.JSONObject;
|
|
|
|
import org.json.simple.parser.ParseException;
|
|
|
|
import org.json.simple.parser.ParseException;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.security.auth.callback.Callback;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.net.MalformedURLException;
|
|
|
|
import java.net.MalformedURLException;
|
|
|
|
import java.util.concurrent.Executors;
|
|
|
|
import java.util.concurrent.Executors;
|
|
|
@ -14,12 +13,12 @@ import java.util.concurrent.TimeUnit;
|
|
|
|
public class DataStoreBot {
|
|
|
|
public class DataStoreBot {
|
|
|
|
String storePath;
|
|
|
|
String storePath;
|
|
|
|
String apiURL;
|
|
|
|
String apiURL;
|
|
|
|
APIPaser api;
|
|
|
|
APIParser api;
|
|
|
|
DataStore store;
|
|
|
|
DataStore store;
|
|
|
|
DataStoreBot(String storePath, String apiURL) throws MalformedURLException {
|
|
|
|
DataStoreBot(String storePath, String apiURL) throws MalformedURLException {
|
|
|
|
this.storePath = storePath;
|
|
|
|
this.storePath = storePath;
|
|
|
|
this.apiURL = apiURL;
|
|
|
|
this.apiURL = apiURL;
|
|
|
|
this.api = new APIPaser(this.apiURL);
|
|
|
|
this.api = new APIParser(this.apiURL);
|
|
|
|
this.store = new DataStore();
|
|
|
|
this.store = new DataStore();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public void setInterval(int seconds) {
|
|
|
|
public void setInterval(int seconds) {
|
|
|
|