Add show table update, add matches list creator
This commit is contained in:
@@ -17,8 +17,8 @@ public class APIFootballConnector {
|
||||
private static APIFootballConnector conn = null;
|
||||
private final int season;
|
||||
private final String gistId;
|
||||
private HashMap<String, JSONObject> rounds = new HashMap<>();
|
||||
private HashMap<String, JSONObject> matches = new HashMap<>();
|
||||
private final HashMap<String, JSONObject> rounds = new HashMap<>();
|
||||
private final HashMap<String, JSONObject> matches = new HashMap<>();
|
||||
|
||||
private APIFootballConnector(int season) {
|
||||
this.season = season;
|
||||
@@ -94,7 +94,7 @@ public class APIFootballConnector {
|
||||
JSONParser jsonParser = new JSONParser();
|
||||
|
||||
GistProvider prov = GistProvider.getInstance();
|
||||
String jsonConfig = prov.getFileFromGist(this.gistId, filename);
|
||||
String jsonConfig = prov.getFileFromGist(filename);
|
||||
|
||||
try {
|
||||
object = (JSONObject) jsonParser.parse(jsonConfig);
|
||||
@@ -111,7 +111,7 @@ public class APIFootballConnector {
|
||||
JSONParser jsonParser = new JSONParser();
|
||||
|
||||
GistProvider prov = GistProvider.getInstance();
|
||||
String jsonConfig = prov.getFileFromGist(this.gistId, filename);
|
||||
String jsonConfig = prov.getFileFromGist(filename);
|
||||
|
||||
try {
|
||||
object = (JSONArray) jsonParser.parse(jsonConfig);
|
||||
|
||||
Reference in New Issue
Block a user