package cgeo.geocaching; import cgeo.geocaching.enumerations.StatusCode; import java.util.ArrayList; import java.util.Date; import java.util.List; public class cgTrackable implements ILogable { static final public int SPOTTED_UNSET = 0; static final public int SPOTTED_CACHE = 1; static final public int SPOTTED_USER = 2; static final public int SPOTTED_UNKNOWN = 3; static final public int SPOTTED_OWNER = 4; 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 logs = new ArrayList(); 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 getLogs() { return logs; } public void setLogs(List logs) { this.logs = logs; } }