aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2013-03-30 20:21:01 +0100
committerBananeweizen <Bananeweizen@gmx.de>2013-03-30 20:21:01 +0100
commit32460d132a0906fd39e92c1ce1c5088920ddf23c (patch)
tree5994d33ebcda1738530233c8d7339d0adbfe59a8 /main/src/cgeo/geocaching/connector
parentbd66d5eeb4ea95325630dae58aaf7f1043085781 (diff)
downloadcgeo-32460d132a0906fd39e92c1ce1c5088920ddf23c.zip
cgeo-32460d132a0906fd39e92c1ce1c5088920ddf23c.tar.gz
cgeo-32460d132a0906fd39e92c1ce1c5088920ddf23c.tar.bz2
refactoring of cache logging code
* simplify control flow * move sanity checks into GCVote and twitter methods
Diffstat (limited to 'main/src/cgeo/geocaching/connector')
-rw-r--r--main/src/cgeo/geocaching/connector/gc/GCParser.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java
index 9af9953..76351c1 100644
--- a/main/src/cgeo/geocaching/connector/gc/GCParser.java
+++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java
@@ -1100,6 +1100,11 @@ public abstract class GCParser {
return StatusCode.LOGIMAGE_POST_ERROR;
}
+ /**
+ * Post a log to GC.com.
+ *
+ * @return status code of the upload and ID of the log
+ */
public static StatusCode postLogTrackable(final String tbid, final String trackingCode, final String[] viewstates,
final LogType logType, final int year, final int month, final int day, final String log) {
if (Login.isEmpty(viewstates)) {