aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgTrackable.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/cgTrackable.java')
-rw-r--r--main/src/cgeo/geocaching/cgTrackable.java200
1 files changed, 177 insertions, 23 deletions
diff --git a/main/src/cgeo/geocaching/cgTrackable.java b/main/src/cgeo/geocaching/cgTrackable.java
index 2a46ed2..29001a8 100644
--- a/main/src/cgeo/geocaching/cgTrackable.java
+++ b/main/src/cgeo/geocaching/cgTrackable.java
@@ -2,8 +2,6 @@ package cgeo.geocaching;
import cgeo.geocaching.enumerations.StatusCode;
-import android.text.Spannable;
-
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -15,29 +13,185 @@ public class cgTrackable {
static final public int SPOTTED_UNKNOWN = 3;
static final public int SPOTTED_OWNER = 4;
- public StatusCode errorRetrieve = null;
- public String error = "";
- public String guid = "";
- public String geocode = "";
- public String iconUrl = "";
- public String name = "";
- public String nameString = null;
- public Spannable nameSp = null;
- public String type = null;
- public Date released = null;
- public Float distance = null;
- public String origin = null;
- public String owner = null;
- public String ownerGuid = null;
- public String spottedName = null;
- public int spottedType = SPOTTED_UNSET;
- public String spottedGuid = null;
- public String goal = null;
- public String details = null;
- public String image = null;
- public List<cgLog> logs = new ArrayList<cgLog>();
+ private StatusCode errorRetrieve = null;
+ private String error = "";
+ private String guid = "";
+ private String geocode = "";
+ private String iconUrl = "";
+ private String name = "";
+ private String type = null;
+ private Date released = null;
+ private Float distance = null;
+ private String origin = null;
+ private String owner = null;
+ private String ownerGuid = null;
+ private String spottedName = null;
+ private int spottedType = SPOTTED_UNSET;
+ private String spottedGuid = null;
+ private String goal = null;
+ private String details = null;
+ private String image = null;
+ private List<cgLog> logs = new ArrayList<cgLog>();
public String getUrl() {
return "http://coord.info/" + geocode.toUpperCase();
}
+
+ public StatusCode getErrorRetrieve() {
+ return errorRetrieve;
+ }
+
+ /*
+ * unused
+ * public void setErrorRetrieve(StatusCode errorRetrieve) {
+ * this.errorRetrieve = errorRetrieve;
+ * }
+ */
+
+ public String getError() {
+ return error;
+ }
+
+ /*
+ * Unused
+ * public void setError(String error) {
+ * this.error = error;
+ * }
+ */
+
+ public String getGuid() {
+ return guid;
+ }
+
+ public void setGuid(String guid) {
+ this.guid = guid;
+ }
+
+ public String getGeocode() {
+ return geocode;
+ }
+
+ public void setGeocode(String geocode) {
+ this.geocode = geocode;
+ }
+
+ public String getIconUrl() {
+ return iconUrl;
+ }
+
+ public void setIconUrl(String iconUrl) {
+ this.iconUrl = iconUrl;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public Date getReleased() {
+ return released;
+ }
+
+ public void setReleased(Date released) {
+ this.released = released;
+ }
+
+ public Float getDistance() {
+ return distance;
+ }
+
+ public void setDistance(Float distance) {
+ this.distance = distance;
+ }
+
+ public String getOrigin() {
+ return origin;
+ }
+
+ public void setOrigin(String origin) {
+ this.origin = origin;
+ }
+
+ public String getOwner() {
+ return owner;
+ }
+
+ public void setOwner(String owner) {
+ this.owner = owner;
+ }
+
+ public String getOwnerGuid() {
+ return ownerGuid;
+ }
+
+ public void setOwnerGuid(String ownerGuid) {
+ this.ownerGuid = ownerGuid;
+ }
+
+ public String getSpottedName() {
+ return spottedName;
+ }
+
+ public void setSpottedName(String spottedName) {
+ this.spottedName = spottedName;
+ }
+
+ public int getSpottedType() {
+ return spottedType;
+ }
+
+ public void setSpottedType(int spottedType) {
+ this.spottedType = spottedType;
+ }
+
+ public String getSpottedGuid() {
+ return spottedGuid;
+ }
+
+ public void setSpottedGuid(String spottedGuid) {
+ this.spottedGuid = spottedGuid;
+ }
+
+ public String getGoal() {
+ return goal;
+ }
+
+ public void setGoal(String goal) {
+ this.goal = goal;
+ }
+
+ public String getDetails() {
+ return details;
+ }
+
+ public void setDetails(String details) {
+ this.details = details;
+ }
+
+ public String getImage() {
+ return image;
+ }
+
+ public void setImage(String image) {
+ this.image = image;
+ }
+
+ public List<cgLog> getLogs() {
+ return logs;
+ }
+
+ public void setLogs(List<cgLog> logs) {
+ this.logs = logs;
+ }
}