public class TourService public static void getToursByTourGuide ParseU

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
public class TourService {
public static void getToursByTourGuide(ParseUser user,
FindCallback<Tour> findCallback) {
ParseQuery.getQuery(Tour.class)
.whereEqualTo(Tour.COLUMN_TOURGUIDE, user)
.findInBackground(findCallback);
}
public static void getToursByTourId(String id,
GetCallback<Tour> findCallback) {
ParseQuery.getQuery(Tour.class)
.getInBackground(id, findCallback);
}
}