aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/oc/OCXMLClient.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-02-03 13:53:48 +0100
committerSamuel Tardieu <sam@rfc1149.net>2013-02-03 13:53:48 +0100
commitb53b6303ae321276d8c25d6a492372ac615580a2 (patch)
treee756bbd1ac81d7117bfadde5c53bb8d5b72d9a85 /main/src/cgeo/geocaching/connector/oc/OCXMLClient.java
parent56106aba18200cd87bc4a51858bdf1125fe913af (diff)
downloadcgeo-b53b6303ae321276d8c25d6a492372ac615580a2.zip
cgeo-b53b6303ae321276d8c25d6a492372ac615580a2.tar.gz
cgeo-b53b6303ae321276d8c25d6a492372ac615580a2.tar.bz2
Refactoring: rename cgCache into Geocache
Diffstat (limited to 'main/src/cgeo/geocaching/connector/oc/OCXMLClient.java')
-rw-r--r--main/src/cgeo/geocaching/connector/oc/OCXMLClient.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/connector/oc/OCXMLClient.java b/main/src/cgeo/geocaching/connector/oc/OCXMLClient.java
index f438db0..3e4d5b6 100644
--- a/main/src/cgeo/geocaching/connector/oc/OCXMLClient.java
+++ b/main/src/cgeo/geocaching/connector/oc/OCXMLClient.java
@@ -1,6 +1,6 @@
package cgeo.geocaching.connector.oc;
-import cgeo.geocaching.cgCache;
+import cgeo.geocaching.Geocache;
import cgeo.geocaching.cgData;
import cgeo.geocaching.connector.ConnectorFactory;
import cgeo.geocaching.connector.IConnector;
@@ -29,7 +29,7 @@ public class OCXMLClient {
// Url for single cache requests
// http://www.opencaching.de/xml/ocxml11.php?modifiedsince=20060320000000&user=0&cache=1&cachedesc=1&cachelog=1&picture=1&removedobject=0&session=0&doctype=0&charset=utf-8&wp=OCC9BE
- public static cgCache getCache(final String geoCode) {
+ public static Geocache getCache(final String geoCode) {
try {
final Parameters params = getOCXmlQueryParameters(true, true, true);
params.put("wp", geoCode);
@@ -39,9 +39,9 @@ public class OCXMLClient {
return null;
}
- Collection<cgCache> caches = OC11XMLParser.parseCaches(new GZIPInputStream(data));
+ Collection<Geocache> caches = OC11XMLParser.parseCaches(new GZIPInputStream(data));
if (caches.iterator().hasNext()) {
- cgCache cache = caches.iterator().next();
+ Geocache cache = caches.iterator().next();
cgData.saveCache(cache, LoadFlags.SAVE_ALL);
return cache;
}
@@ -52,7 +52,7 @@ public class OCXMLClient {
}
}
- public static Collection<cgCache> getCachesAround(final Geopoint center, final double distance) {
+ public static Collection<Geocache> getCachesAround(final Geopoint center, final double distance) {
try {
final Parameters params = getOCXmlQueryParameters(false, false, false);
params.put("lat", GeopointFormatter.format(GeopointFormatter.Format.LAT_DECDEGREE_RAW, center));