mirror of
https://github.com/bspeice/UNCCGameDay
synced 2025-01-09 23:40:04 -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/")
|
@GET("/lots/")
|
||||||
List<ParkingLot> listLots();
|
List<ParkingLot> listLots();
|
||||||
|
|
||||||
|
@GET("/lots/{lot}/")
|
||||||
|
ParkingLot listLot(@Path("lot") String lot);
|
||||||
|
|
||||||
@POST("/rating/")
|
@POST("/rating/")
|
||||||
void rateLot(@Body ParkingRating rating, @Body ParkingChoices parking_lot);
|
void rateLot(@Body ParkingRating rating, @Body ParkingChoices parking_lot);
|
||||||
|
|
||||||
|
@ -24,6 +24,10 @@ public class RegistrationClient {
|
|||||||
return gds.listLots();
|
return gds.listLots();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ParkingLot listLot(ParkingLot lot) {
|
||||||
|
return gds.listLot(lot.location.getValue());
|
||||||
|
}
|
||||||
|
|
||||||
public void rateLot(ParkingRating rating, ParkingChoices parkingLot) {
|
public void rateLot(ParkingRating rating, ParkingChoices parkingLot) {
|
||||||
gds.rateLot(rating, parkingLot);
|
gds.rateLot(rating, parkingLot);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user