From 6acdf13340370789cb5c94fc360a5bb73f93dd89 Mon Sep 17 00:00:00 2001 From: David Groys Date: Tue, 11 Jun 2024 16:07:43 +0200 Subject: [PATCH] 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); } + + }