blob: 0081aa1e1a3f686a79224e9c276506d48b2f9c7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package cgeo.geocaching.loaders;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.Settings;
import cgeo.geocaching.cgData;
import cgeo.geocaching.geopoint.Geopoint;
import android.content.Context;
public class OfflineGeocacheListLoader extends AbstractSearchLoader {
private int listId;
private Geopoint searchCenter;
public OfflineGeocacheListLoader(Context context, Geopoint searchCenter, int listId) {
super(context);
this.searchCenter = searchCenter;
this.listId = listId;
}
@Override
public SearchResult runSearch() {
return cgData.getBatchOfStoredCaches(searchCenter, Settings.getCacheType(), listId);
}
public void setListId(int listId) {
this.listId = listId;
}
public void setSearchCenter(Geopoint searchCenter) {
this.searchCenter = searchCenter;
}
}
|