Slide 27
Slide 27 text
String patientId = "patientId";
GetAppointmentsRequest request =
GetAppointmentsRequest.create(AppointmentType.UPCOMING, patientId);
babylonAppointmentApi.getAppointments(request, new GetAppointmentsOutput() {
@Override
public void onFetchAppointmentsSuccess(List appointments) {
if (appointments.isEmpty()) {
getView().showNoAppointments();
} else {
getView().showAppointments(appointments);
}
}});
Presenter using the SDK: