aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/ConnectorFactory.java
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2014-04-03 15:12:59 +0200
committerrsudev <rasch@munin-soft.de>2014-04-07 18:22:03 +0200
commit3958777a5cf254ac2bfbb5cb569cfbd42abfb49f (patch)
tree3bd1ac97c86ccfd6d25a072b869b2bf91b1662d7 /main/src/cgeo/geocaching/connector/ConnectorFactory.java
parentfb2331485b0f463ea7ae47a9a8d5ec0fb6d9ba2a (diff)
downloadcgeo-3958777a5cf254ac2bfbb5cb569cfbd42abfb49f.zip
cgeo-3958777a5cf254ac2bfbb5cb569cfbd42abfb49f.tar.gz
cgeo-3958777a5cf254ac2bfbb5cb569cfbd42abfb49f.tar.bz2
Implements #3692. Add support for new opencaching nodes
Added opencaching nl,us,ro live support and preferences
Diffstat (limited to 'main/src/cgeo/geocaching/connector/ConnectorFactory.java')
-rw-r--r--main/src/cgeo/geocaching/connector/ConnectorFactory.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/connector/ConnectorFactory.java b/main/src/cgeo/geocaching/connector/ConnectorFactory.java
index 35eae81..9e4e02e 100644
--- a/main/src/cgeo/geocaching/connector/ConnectorFactory.java
+++ b/main/src/cgeo/geocaching/connector/ConnectorFactory.java
@@ -29,6 +29,7 @@ import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import rx.functions.Func1;
+import rx.schedulers.Schedulers;
import java.util.ArrayList;
import java.util.Arrays;
@@ -50,11 +51,18 @@ public final class ConnectorFactory {
new OCConnector("OpenCaching.IT", "www.opencaching.it", "OC"),
new OCConnector("OpenCaching.JP", "www.opencaching.jp", "OJ"),
new OCConnector("OpenCaching.NO/SE", "www.opencaching.se", "OS"),
- new OCApiConnector("OpenCaching.NL", "www.opencaching.nl", "OB", "PdzU8jzIlcfMADXaYN8j", "CC BY-SA 3.0", ApiSupport.current),
+ new OCApiLiveConnector("opencaching.nl", "www.opencaching.nl", "OB", "CC BY-SA 3.0",
+ R.string.oc_nl_okapi_consumer_key, R.string.oc_nl_okapi_consumer_secret,
+ R.string.pref_connectorOCNLActive, R.string.pref_ocnl_tokenpublic, R.string.pref_ocnl_tokensecret, ApiSupport.current),
new OCApiLiveConnector("opencaching.pl", "www.opencaching.pl", "OP", "CC BY-SA 3.0",
R.string.oc_pl_okapi_consumer_key, R.string.oc_pl_okapi_consumer_secret,
R.string.pref_connectorOCPLActive, R.string.pref_ocpl_tokenpublic, R.string.pref_ocpl_tokensecret, ApiSupport.current),
- new OCApiConnector("OpenCaching.US", "www.opencaching.us", "OU", "pTsYAYSXFcfcRQnYE6uA", "CC BY-NC-SA 2.5", ApiSupport.current),
+ new OCApiLiveConnector("opencaching.us", "www.opencaching.us", "OU", "CC BY-NC-SA 2.5",
+ R.string.oc_us_okapi_consumer_key, R.string.oc_us_okapi_consumer_secret,
+ R.string.pref_connectorOCUSActive, R.string.pref_ocus_tokenpublic, R.string.pref_ocus_tokensecret, ApiSupport.current),
+ new OCApiLiveConnector("opencaching.ro", "oc.opencaching.ro", "OR", "CC BY-SA 3.0",
+ R.string.oc_ro_okapi_consumer_key, R.string.oc_ro_okapi_consumer_secret,
+ R.string.pref_connectorOCROActive, R.string.pref_ocro_tokenpublic, R.string.pref_ocro_tokensecret, ApiSupport.current),
new OXConnector(),
new GeocachingAustraliaConnector(),
new GeopeitusConnector(),