RegistrationClient now knows about the new GamedayServices

master
bspeice 2013-10-19 21:03:19 -04:00
parent befaf69d33
commit 11b7ad6547
2 changed files with 31 additions and 0 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 AttendeeCallback implements Callback<Attendee> {
@Override
public void failure(RetrofitError e) {
Log.w("AttendeeCallback", e.getMessage());
}
@Override
public void success(Attendee a, Response r) {
return;
}
}

View File

@ -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();
}
}