aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/oc/OCDEAuthParams.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/connector/oc/OCDEAuthParams.java')
-rw-r--r--main/src/cgeo/geocaching/connector/oc/OCDEAuthParams.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/connector/oc/OCDEAuthParams.java b/main/src/cgeo/geocaching/connector/oc/OCDEAuthParams.java
new file mode 100644
index 0000000..734b383
--- /dev/null
+++ b/main/src/cgeo/geocaching/connector/oc/OCDEAuthParams.java
@@ -0,0 +1,46 @@
+package cgeo.geocaching.connector.oc;
+
+import cgeo.geocaching.R;
+
+public class OCDEAuthParams implements IOCAuthParams {
+
+ @Override
+ public String getSite() {
+ return "www.opencaching.de";
+ }
+
+ @Override
+ public int getCKResId() {
+ return R.string.oc_de_okapi_consumer_key;
+ }
+
+ @Override
+ public int getCSResId() {
+ return R.string.oc_de_okapi_consumer_secret;
+ }
+
+ @Override
+ public int getAuthTitelResId() {
+ return R.string.auth_ocde;
+ }
+
+ @Override
+ public int getTokenPublicPrefKey() {
+ return R.string.pref_ocde_tokenpublic;
+ }
+
+ @Override
+ public int getTokenSecretPrefKey() {
+ return R.string.pref_ocde_tokensecret;
+ }
+
+ @Override
+ public int getTempTokenPublicPrefKey() {
+ return R.string.pref_temp_ocde_token_public;
+ }
+
+ @Override
+ public int getTempTokenSecretPrefKey() {
+ return R.string.pref_temp_ocde_token_secret;
+ }
+}