aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/loaders/OfflineGeocacheListLoader.java
blob: ef1029b38feb130e757bde7cc08cfd38f3a6c2a1 (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
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 final int listId;
    private final 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);
    }

}