mirror of
				https://github.com/bspeice/UNCCGameDay
				synced 2025-11-04 02:10:35 -05:00 
			
		
		
		
	RegistrationClient now knows about the new GamedayServices
This commit is contained in:
		
							
								
								
									
										20
									
								
								src/com/uncc/gameday/registration/AttendeeCallback.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								src/com/uncc/gameday/registration/AttendeeCallback.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 AttendeeCallback implements Callback<Attendee> {
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	public void failure(RetrofitError e) {
 | 
			
		||||
		Log.w("AttendeeCallback", e.getMessage());		
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	public void success(Attendee a, Response r) {
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@ -42,4 +42,15 @@ public class RegistrationClient {
 | 
			
		||||
		gds.rateLot(rating, new ParkingLotCallback());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public void registerAttendee(Attendee a) {
 | 
			
		||||
		gds.registerUser(a, new AttendeeCallback());
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public Attendee listAttendee(Attendee a) {
 | 
			
		||||
		return gds.getUser(a.getId());
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public List<Attendee> listAttendees() {
 | 
			
		||||
		return gds.getAllUsers();
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user