From b62cd865e902407f3deb40c97f90f890d554f81e Mon Sep 17 00:00:00 2001 From: bspeice Date: Sat, 19 Oct 2013 20:52:08 -0400 Subject: [PATCH] Add a dummy ParkingLotCallback Don't know why the unit test passed last night, won't pass without this now... --- .../registration/ParkingLotCallback.java | 20 +++++++++++++++++++ .../registration/RegistrationClient.java | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 src/com/uncc/gameday/registration/ParkingLotCallback.java diff --git a/src/com/uncc/gameday/registration/ParkingLotCallback.java b/src/com/uncc/gameday/registration/ParkingLotCallback.java new file mode 100644 index 0000000..3519476 --- /dev/null +++ b/src/com/uncc/gameday/registration/ParkingLotCallback.java @@ -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 { + + @Override + public void failure(RetrofitError e) { + Log.w("ParkingLotCallback", e.getMessage()); + } + + @Override + public void success(ParkingLot p, Response r) { + return; + } + +} diff --git a/src/com/uncc/gameday/registration/RegistrationClient.java b/src/com/uncc/gameday/registration/RegistrationClient.java index 7ddb1d6..e4a637e 100644 --- a/src/com/uncc/gameday/registration/RegistrationClient.java +++ b/src/com/uncc/gameday/registration/RegistrationClient.java @@ -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()); } }