mirror of
				https://github.com/bspeice/UNCCGameDay
				synced 2025-10-31 09:20:34 -04:00 
			
		
		
		
	Add ability to list an individual lot for parking.
This commit is contained in:
		| @ -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); | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 bspeice
					bspeice