Add ability to list an individual lot for parking.

This commit is contained in:
bspeice 2013-10-18 17:58:06 -04:00
parent a478045fe2
commit 0ed2401663
2 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,9 @@ public interface GamedayService {
@GET("/lots/")
List<ParkingLot> listLots();
@GET("/lots/{lot}/")
ParkingLot listLot(@Path("lot") String lot);
@POST("/rating/")
void rateLot(@Body ParkingRating rating, @Body ParkingChoices parking_lot);

View File

@ -24,6 +24,10 @@ public class RegistrationClient {
return gds.listLots();
}
public ParkingLot listLot(ParkingLot lot) {
return gds.listLot(lot.location.getValue());
}
public void rateLot(ParkingRating rating, ParkingChoices parkingLot) {
gds.rateLot(rating, parkingLot);
}