diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-06-01 14:12:02 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-06-01 14:12:02 +0200 |
| commit | 2ab4eab43295c1c02a1682eff2251eb65a6fe9fe (patch) | |
| tree | da85178102fcd1e1df1ee4991e6c295d5d33decb /main/src/cgeo/geocaching/connector/oc/OkapiService.java | |
| parent | de0922ed82feb3d4715b8b354951c93852f4567a (diff) | |
| download | cgeo-2ab4eab43295c1c02a1682eff2251eb65a6fe9fe.zip cgeo-2ab4eab43295c1c02a1682eff2251eb65a6fe9fe.tar.gz cgeo-2ab4eab43295c1c02a1682eff2251eb65a6fe9fe.tar.bz2 | |
fix #2820: OC search no longer working without authorization
Diffstat (limited to 'main/src/cgeo/geocaching/connector/oc/OkapiService.java')
| -rw-r--r-- | main/src/cgeo/geocaching/connector/oc/OkapiService.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/connector/oc/OkapiService.java b/main/src/cgeo/geocaching/connector/oc/OkapiService.java new file mode 100644 index 0000000..9b47596 --- /dev/null +++ b/main/src/cgeo/geocaching/connector/oc/OkapiService.java @@ -0,0 +1,20 @@ +package cgeo.geocaching.connector.oc; + +import cgeo.geocaching.connector.oc.OCApiConnector.OAuthLevel; + + +enum OkapiService { + SERVICE_CACHE("/okapi/services/caches/geocache", OAuthLevel.Level1), + SERVICE_SEARCH_AND_RETRIEVE("/okapi/services/caches/shortcuts/search_and_retrieve", OAuthLevel.Level1), + SERVICE_MARK_CACHE("/okapi/services/caches/mark", OAuthLevel.Level3), + SERVICE_SUBMIT_LOG("/okapi/services/logs/submit", OAuthLevel.Level3); + + final String methodName; + final OAuthLevel level; + + OkapiService(final String methodName, final OAuthLevel level) { + this.methodName = methodName; + this.level = level; + } + +} |
