aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/cgSearch.java
blob: 76599b210171de19f2f1cecc547caa468139731b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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);
	}
}