diff options
Diffstat (limited to 'src/cgeo/geocaching/cgSearch.java')
| -rw-r--r-- | src/cgeo/geocaching/cgSearch.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/cgeo/geocaching/cgSearch.java b/src/cgeo/geocaching/cgSearch.java new file mode 100644 index 0000000..a6638e5 --- /dev/null +++ b/src/cgeo/geocaching/cgSearch.java @@ -0,0 +1,39 @@ +package cgeo.geocaching; + +import java.util.ArrayList; + +public class cgSearch { + private Long id = null; + private ArrayList<String> geocodes = new ArrayList<String>(); + + public int errorRetrieve = 0; + public String error = null; + public String url = ""; + public String viewstate = ""; + public String viewstate1 = ""; + public int totalCnt = 0; + + public cgSearch() { + id = System.currentTimeMillis(); // possible collisions here - not guaranteed to be unique + } + + public Long getCurrentId() { + return id; + } + + public ArrayList<String> getGeocodes() { + return geocodes; + } + + public int getCount() { + return geocodes.size(); + } + + public void addGeocode(String geocode) { + if (geocodes == null) { + geocodes = new ArrayList<String>(); + } + + geocodes.add(geocode); + } +} |
