diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-09-16 14:36:28 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-09-16 14:36:28 +0200 |
commit | 579ef7a535489d4aa632db11667a3b01deb6cafd (patch) | |
tree | 55810021c02ac7d80d3a9702ef0b59e4af154b9c /main/src/cgeo/geocaching/cgSearch.java | |
parent | 96ea21fd50334479c262da692038965d0e4d596a (diff) | |
download | cgeo-579ef7a535489d4aa632db11667a3b01deb6cafd.zip cgeo-579ef7a535489d4aa632db11667a3b01deb6cafd.tar.gz cgeo-579ef7a535489d4aa632db11667a3b01deb6cafd.tar.bz2 |
Move sources into the main directory
This prepares the inclusion of tests into the same repository.
Diffstat (limited to 'main/src/cgeo/geocaching/cgSearch.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgSearch.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/cgSearch.java b/main/src/cgeo/geocaching/cgSearch.java new file mode 100644 index 0000000..75c5572 --- /dev/null +++ b/main/src/cgeo/geocaching/cgSearch.java @@ -0,0 +1,39 @@ +package cgeo.geocaching; + +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + +public class cgSearch { + private UUID id; + private List<String> geocodes = new ArrayList<String>(); + + public String error = null; + public String url = ""; + public String[] viewstates = null; + public int totalCnt = 0; + + public cgSearch() { + id = UUID.randomUUID(); + } + + public UUID getCurrentId() { + return id; + } + + public List<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); + } +} |