From a8cac6b067a2b37f3c243733ddac4086445a202f Mon Sep 17 00:00:00 2001 From: David Groys Date: Mon, 10 Jun 2024 16:26:00 +0200 Subject: [PATCH 1/4] get_details method implemented --- src/main/java/de/hs_mannheim/facade/Application.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/de/hs_mannheim/facade/Application.java b/src/main/java/de/hs_mannheim/facade/Application.java index 5fca9b2..cfe5900 100644 --- a/src/main/java/de/hs_mannheim/facade/Application.java +++ b/src/main/java/de/hs_mannheim/facade/Application.java @@ -48,4 +48,7 @@ public class Application { return running_system.current_weather(); } + public String[] get_getails(){ + return System.get_details(); + } } From 9ceffc108d3c44f4f707eb7b8047d90bdf71cf16 Mon Sep 17 00:00:00 2001 From: David Groys Date: Tue, 11 Jun 2024 10:27:30 +0200 Subject: [PATCH 2/4] getDetails() changeUserDetails() und signUoUser() angepasst --- src/main/java/de/hs_mannheim/facade/Application.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/hs_mannheim/facade/Application.java b/src/main/java/de/hs_mannheim/facade/Application.java index cfe5900..2c64028 100644 --- a/src/main/java/de/hs_mannheim/facade/Application.java +++ b/src/main/java/de/hs_mannheim/facade/Application.java @@ -16,15 +16,15 @@ public class Application { return true; } - public boolean sign_up_user(String username, String password, String hometown, int zip, - String car_name, double car_co2_km, double car_avg_kmh, double bike_avg_kmh){ + public boolean sign_up_user(String username, String password, String hometown, String zip, + String car_name, String car_co2_km, String car_avg_kmh, String bike_avg_kmh){ return true; } public void sign_out_user(){} - public boolean change_user_details(String username, String password, String hometown, int zip, - String car_name, double car_co2_km, double car_avg_kmh, double bike_avg_kmh){ + public boolean change_user_details(String username, String password, String hometown, String zip, + String car_name, String car_co2_km, String car_avg_kmh, String bike_avg_kmh){ return true; } @@ -48,7 +48,7 @@ public class Application { return running_system.current_weather(); } - public String[] get_getails(){ - return System.get_details(); + public String[] getDetails(){ + return System.getDetails(); } } From 4335e7f49e7e90dda550500fdb21ff2e5772f387 Mon Sep 17 00:00:00 2001 From: David Groys Date: Tue, 11 Jun 2024 10:50:41 +0200 Subject: [PATCH 3/4] distance method implemented --- src/main/java/de/hs_mannheim/facade/Application.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/de/hs_mannheim/facade/Application.java b/src/main/java/de/hs_mannheim/facade/Application.java index 2c64028..f6cb7e9 100644 --- a/src/main/java/de/hs_mannheim/facade/Application.java +++ b/src/main/java/de/hs_mannheim/facade/Application.java @@ -51,4 +51,8 @@ public class Application { public String[] getDetails(){ return System.getDetails(); } + + public String distnace(String zip){ + return running_system.distance(zip); + } } From 6acdf13340370789cb5c94fc360a5bb73f93dd89 Mon Sep 17 00:00:00 2001 From: David Groys Date: Tue, 11 Jun 2024 16:07:43 +0200 Subject: [PATCH 4/4] implemented missing returns. --- .../java/de/hs_mannheim/facade/Application.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/hs_mannheim/facade/Application.java b/src/main/java/de/hs_mannheim/facade/Application.java index f6cb7e9..f93622d 100644 --- a/src/main/java/de/hs_mannheim/facade/Application.java +++ b/src/main/java/de/hs_mannheim/facade/Application.java @@ -13,19 +13,21 @@ public class Application { } public boolean sign_in_user(String username, String password){ - return true; + return running_system.sign_in_user(username, password); } public boolean sign_up_user(String username, String password, String hometown, String zip, String car_name, String car_co2_km, String car_avg_kmh, String bike_avg_kmh){ - return true; + return running_system.sign_up_user(username, password, hometown, zip, car_name, car_co2_km, car_avg_kmh, bike_avg_kmh); } - public void sign_out_user(){} + public void sign_out_user(){ + running_system.sign_out_user(); + } public boolean change_user_details(String username, String password, String hometown, String zip, String car_name, String car_co2_km, String car_avg_kmh, String bike_avg_kmh){ - return true; + return running_system.change_user_details(username, password, hometown, zip, car_name, car_co2_km, car_avg_kmh, bike_avg_kmh); } public ArrayList search(String hometown_or_zip){ @@ -49,10 +51,12 @@ public class Application { } public String[] getDetails(){ - return System.getDetails(); + return running_system.getDetails(); } - public String distnace(String zip){ + public String distance(String zip){ return running_system.distance(zip); } + + }