Add some extra helper code on the RegistrationClient

This commit is contained in:
bspeice 2013-10-18 18:51:49 -04:00
parent e79f1910c9
commit e12b47fe4c

View File

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