mirror of
https://github.com/bspeice/UNCCGameDay
synced 2024-11-05 07:38:13 -05:00
RegistrationClient now knows about the new GamedayServices
This commit is contained in:
parent
befaf69d33
commit
11b7ad6547
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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user