From e12b47fe4ccab0e8dbe12de065c4b9ece49005a2 Mon Sep 17 00:00:00 2001 From: bspeice Date: Fri, 18 Oct 2013 18:51:49 -0400 Subject: [PATCH] Add some extra helper code on the RegistrationClient --- src/com/uncc/gameday/registration/RegistrationClient.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/com/uncc/gameday/registration/RegistrationClient.java b/src/com/uncc/gameday/registration/RegistrationClient.java index 0d61089..d964732 100644 --- a/src/com/uncc/gameday/registration/RegistrationClient.java +++ b/src/com/uncc/gameday/registration/RegistrationClient.java @@ -28,8 +28,16 @@ public class RegistrationClient { return gds.listLot(choice.getValue()); } + public ParkingLot listLot(ParkingLot lot) { + return gds.listLot(lot.getLocation().getValue()); + } + public void rateLot(RatingChoices rating, ParkingChoices parkingLot) { gds.rateLot(rating, parkingLot); } + + public void rateLot(ParkingRating rating) { + gds.rateLot(rating.getRating(), rating.getParkingLot()); + } }