Get the rate lot function working correctly.

It's a bit funky - requests seem to hit the server about 90% of the
time...
This commit is contained in:
bspeice
2013-10-18 21:45:59 -04:00
parent e12b47fe4c
commit 250db4a1f9
6 changed files with 19 additions and 15 deletions

View File

@ -2,6 +2,7 @@ package com.uncc.gameday.registration;
import java.util.List;
import retrofit.Callback;
import retrofit.http.*;
public interface GamedayService {
@ -12,7 +13,7 @@ public interface GamedayService {
@GET("/lots/{lot}/")
ParkingLot listLot(@Path("lot") String lot);
@POST("/rating/")
void rateLot(@Body RatingChoices rating, @Body ParkingChoices parking_lot);
@POST("/rate/")
void rateLot(@Body ParkingRating p, Callback<ParkingLot> lot);
}