Add a dummy ParkingLotCallback

Don't know why the unit test passed last night, won't pass without this
now...
This commit is contained in:
bspeice 2013-10-19 20:52:08 -04:00
parent 0190bae731
commit b62cd865e9
2 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,20 @@
package com.uncc.gameday.registration;
import android.util.Log;
import retrofit.Callback;
import retrofit.RetrofitError;
import retrofit.client.Response;
public class ParkingLotCallback implements Callback<ParkingLot> {
@Override
public void failure(RetrofitError e) {
Log.w("ParkingLotCallback", e.getMessage());
}
@Override
public void success(ParkingLot p, Response r) {
return;
}
}

View File

@ -35,11 +35,11 @@ public class RegistrationClient {
ParkingRating pRating = new ParkingRating();
pRating.setParkingLot(parkingLot);
pRating.setRating(rating);
gds.rateLot(pRating, null);
gds.rateLot(pRating, new ParkingLotCallback());
}
public void rateLot(ParkingRating rating) {
gds.rateLot(rating, null);
gds.rateLot(rating, new ParkingLotCallback());
}
}