renamed SmmdbAPIQuery to SMMDBAPIController
This commit is contained in:
parent
dafd0b84df
commit
b8f4f89ec6
@ -51,7 +51,7 @@ import org.apache.commons.io.FileUtils;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import com.cemu_UI.controller.SmmdbApiQuery;
|
||||
import com.cemu_UI.controller.SmmdbAPIController;
|
||||
import com.cemu_UI.controller.UpdateController;
|
||||
import com.cemu_UI.controller.dbController;
|
||||
import com.cemu_UI.datatypes.CourseTableDataType;
|
||||
@ -255,7 +255,7 @@ public class MainWindowController {
|
||||
|
||||
Main main;
|
||||
dbController dbController;
|
||||
SmmdbApiQuery smmdbApiQuery;
|
||||
SmmdbAPIController smmdbAPIController;
|
||||
playGame playGame;
|
||||
private UpdateController updateController;
|
||||
private boolean menuTrue = false;
|
||||
@ -325,7 +325,7 @@ public class MainWindowController {
|
||||
public void setMain(Main main) {
|
||||
this.main = main;
|
||||
dbController = new dbController(this);
|
||||
smmdbApiQuery = new SmmdbApiQuery();
|
||||
smmdbAPIController = new SmmdbAPIController();
|
||||
}
|
||||
|
||||
void initUI() {
|
||||
@ -782,7 +782,7 @@ public class MainWindowController {
|
||||
|
||||
//start query
|
||||
courses.removeAll(courses);
|
||||
courses.addAll(smmdbApiQuery.startQuery());
|
||||
courses.addAll(smmdbAPIController.startQuery());
|
||||
|
||||
//add query response to courseTreeTable
|
||||
for(int i = 0; i < courses.size(); i++){
|
||||
|
@ -35,12 +35,12 @@ import com.eclipsesource.json.Json;
|
||||
import com.eclipsesource.json.JsonArray;
|
||||
import com.eclipsesource.json.JsonValue;
|
||||
|
||||
public class SmmdbApiQuery {
|
||||
public class SmmdbAPIController {
|
||||
|
||||
private String URL = "https://smmdb.ddns.net/api/getcourses?format=json";
|
||||
private static final Logger LOGGER = LogManager.getLogger(SmmdbApiQuery.class.getName());
|
||||
private static final Logger LOGGER = LogManager.getLogger(SmmdbAPIController.class.getName());
|
||||
|
||||
public SmmdbApiQuery() {
|
||||
public SmmdbAPIController() {
|
||||
//Auto-generated constructor stub
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user