diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-05-01 08:15:49 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-05-01 08:15:49 +0200 |
| commit | e3f07c229b048d39bcb61db16545648aa697e0d6 (patch) | |
| tree | e33f3d7b7adb9b453964f7024b450899a424e2ce /main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java | |
| parent | 5709b30c25a2dbc79454c8f5150f676de0e49a75 (diff) | |
| download | cgeo-e3f07c229b048d39bcb61db16545648aa697e0d6.zip cgeo-e3f07c229b048d39bcb61db16545648aa697e0d6.tar.gz cgeo-e3f07c229b048d39bcb61db16545648aa697e0d6.tar.bz2 | |
refactoring: rename log typ enums for easier code completion and
reading
Diffstat (limited to 'main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java')
| -rw-r--r-- | main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java b/main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java index 165e277..06c97b0 100644 --- a/main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java +++ b/main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java @@ -135,8 +135,8 @@ final public class OkapiClient { final JSONObject owner = response.getJSONObject(CACHE_OWNER); cache.setOwner(parseUser(owner)); - cache.getLogCounts().put(LogType.LOG_FOUND_IT, response.getInt(CACHE_FOUNDS)); - cache.getLogCounts().put(LogType.LOG_DIDNT_FIND_IT, response.getInt(CACHE_NOTFOUNDS)); + cache.getLogCounts().put(LogType.FOUND_IT, response.getInt(CACHE_FOUNDS)); + cache.getLogCounts().put(LogType.DIDNT_FIND_IT, response.getInt(CACHE_NOTFOUNDS)); cache.setSize(getCacheSize(response)); cache.setDifficulty((float) response.getDouble(CACHE_DIFFICULTY)); cache.setTerrain((float) response.getDouble(CACHE_TERRAIN)); @@ -224,12 +224,12 @@ final public class OkapiClient { private static LogType parseLogType(String logType) { if ("Found it".equalsIgnoreCase(logType)) { - return LogType.LOG_FOUND_IT; + return LogType.FOUND_IT; } if ("Didn't find it".equalsIgnoreCase(logType)) { - return LogType.LOG_DIDNT_FIND_IT; + return LogType.DIDNT_FIND_IT; } - return LogType.LOG_NOTE; + return LogType.NOTE; } private static Date parseDate(final String date) { |
