You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
463 B
Java
21 lines
463 B
Java
package sh.adb.sensorCommunityAPI;
|
|
|
|
import org.json.simple.JSONObject;
|
|
|
|
|
|
public class dbHandler {
|
|
String pw;
|
|
String db;
|
|
String user;
|
|
int port;
|
|
String server;
|
|
|
|
dbHandler(JSONObject config){
|
|
this.pw = (String) config.get("pw");
|
|
this.db = (String) config.get("db");
|
|
this.user = (String) config.get("user");
|
|
this.port = (Integer) config.get("port");
|
|
this.server = (String) config.get("server");
|
|
}
|
|
}
|