diff options
Diffstat (limited to 'main/src/cgeo/geocaching/connector/oc/OCNLAuthParams.java')
| -rw-r--r-- | main/src/cgeo/geocaching/connector/oc/OCNLAuthParams.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/connector/oc/OCNLAuthParams.java b/main/src/cgeo/geocaching/connector/oc/OCNLAuthParams.java new file mode 100644 index 0000000..31d8590 --- /dev/null +++ b/main/src/cgeo/geocaching/connector/oc/OCNLAuthParams.java @@ -0,0 +1,51 @@ +package cgeo.geocaching.connector.oc; + +import cgeo.geocaching.R; + +public class OCNLAuthParams implements IOCAuthParams { + + @Override + public String getSite() { + return "www.opencaching.nl"; + } + + @Override + public int getCKResId() { + return R.string.oc_nl_okapi_consumer_key; + } + + @Override + public int getCSResId() { + return R.string.oc_nl_okapi_consumer_secret; + } + + @Override + public int getAuthTitleResId() { + return R.string.auth_ocnl; + } + + @Override + public int getTokenPublicPrefKey() { + return R.string.pref_ocnl_tokenpublic; + } + + @Override + public int getTokenSecretPrefKey() { + return R.string.pref_ocnl_tokensecret; + } + + @Override + public int getTempTokenPublicPrefKey() { + return R.string.pref_temp_ocnl_token_public; + } + + @Override + public int getTempTokenSecretPrefKey() { + return R.string.pref_temp_ocnl_token_secret; + } + + @Override + public String getCallbackUri() { + return "callback://www.cgeo.org/opencaching.nl/"; + } +} |
