From e3f07c229b048d39bcb61db16545648aa697e0d6 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Tue, 1 May 2012 08:15:49 +0200 Subject: refactoring: rename log typ enums for easier code completion and reading --- .../src/cgeo/geocaching/connector/opencaching/OkapiClient.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main/src/cgeo/geocaching/connector/opencaching/OkapiClient.java') 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) { -- cgit v1.1