mirror of
https://github.com/bspeice/UNCCGameDay
synced 2024-11-05 07:38:13 -05:00
Add ability to list an individual lot for parking.
This commit is contained in:
parent
a478045fe2
commit
0ed2401663
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user