System.java constructor with api_key, removed getter and setter methods

api_setup
Selim Eser 2024-06-09 02:52:50 +02:00
parent 101b12dab7
commit 42e7cc5daa
2 changed files with 3 additions and 9 deletions

View File

@ -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;
}

View File

@ -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){