aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/oc/OCPLAuthParams.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/connector/oc/OCPLAuthParams.java')
-rw-r--r--main/src/cgeo/geocaching/connector/oc/OCPLAuthParams.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/connector/oc/OCPLAuthParams.java b/main/src/cgeo/geocaching/connector/oc/OCPLAuthParams.java
new file mode 100644
index 0000000..117e990
--- /dev/null
+++ b/main/src/cgeo/geocaching/connector/oc/OCPLAuthParams.java
@@ -0,0 +1,46 @@
+package cgeo.geocaching.connector.oc;
+
+import cgeo.geocaching.R;
+
+public class OCPLAuthParams implements IOCAuthParams {
+
+ @Override
+ public String getSite() {
+ return "www.opencaching.pl";
+ }
+
+ @Override
+ public int getCKResId() {
+ return R.string.oc_pl_okapi_consumer_key;
+ }
+
+ @Override
+ public int getCSResId() {
+ return R.string.oc_pl_okapi_consumer_secret;
+ }
+
+ @Override
+ public int getAuthTitelResId() {
+ return R.string.auth_ocpl;
+ }
+
+ @Override
+ public int getTokenPublicPrefKey() {
+ return R.string.pref_ocpl_tokenpublic;
+ }
+
+ @Override
+ public int getTokenSecretPrefKey() {
+ return R.string.pref_ocpl_tokensecret;
+ }
+
+ @Override
+ public int getTempTokenPublicPrefKey() {
+ return R.string.pref_temp_ocpl_token_public;
+ }
+
+ @Override
+ public int getTempTokenSecretPrefKey() {
+ return R.string.pref_temp_ocpl_token_secret;
+ }
+}