System.java constructor with api_key, removed getter and setter methods
parent
101b12dab7
commit
42e7cc5daa
|
@ -1,8 +1,6 @@
|
|||
package de.hs_mannheim.domain;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.http.HttpClient;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
|
@ -17,11 +15,7 @@ public class System {
|
|||
private User current_user;
|
||||
private String api_key;
|
||||
|
||||
public String getApi_key() {
|
||||
return api_key;
|
||||
}
|
||||
|
||||
public void setApi_key(String api_key) {
|
||||
public System(String api_key) {
|
||||
this.api_key = api_key;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ public class Application {
|
|||
|
||||
private System running_system;
|
||||
|
||||
public Application(){
|
||||
this.running_system = new System();
|
||||
public Application(String api_key){
|
||||
this.running_system = new System(api_key);
|
||||
}
|
||||
|
||||
public boolean sign_in_user(String username, String password){
|
||||
|
|
Loading…
Reference in New Issue