typo in "APIParser"

master
adb 4 years ago
parent a0b0ca53ac
commit 540bb7b778

@ -15,9 +15,9 @@ import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.util.EntityUtils;
import org.json.simple.parser.ParseException;
public class APIPaser {
public class APIParser {
String url;
public APIPaser(String urlString) throws MalformedURLException {
public APIParser(String urlString) throws MalformedURLException {
this.url = urlString;
}
public JSONArray getJSONObject() throws IOException, ParseException {

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

Loading…
Cancel
Save