mirror of
				https://github.com/bspeice/UNCCGameDay
				synced 2025-11-03 18:00:43 -05:00 
			
		
		
		
	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:
		
							
								
								
									
										20
									
								
								src/com/uncc/gameday/registration/ParkingLotCallback.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								src/com/uncc/gameday/registration/ParkingLotCallback.java
									
									
									
									
									
										Normal 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;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@ -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());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user