ParseQuery getQuery Tour class getInBackground tourId new GetCallback

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
ParseQuery.getQuery(Tour.class)
.getInBackground(tourId, new GetCallback<Tour>() {
@Override
public void done(final Tour tour, ParseException e) {
if (tour != null && tour.getTourists() != null) {
tour.getTourists().getQuery().findInBackground(new FindCallback<User>() {
@Override
public void done(List<User> contacts, ParseException e) {
if (contacts != null && contacts.size() > 0) {
ContactGridView outOfProximity = new ContactGridView(activity);
outOfProximity.setType(ContactGridView.TYPE_OUT_OF_PROXIMITY);
outOfProximity.setContactList(contacts);
mainContainer.addView(outOfProximity);
}
}
});
}
progressDialogFragment.dismiss();
}
});