-
- All Implemented Interfaces:
public final class GeocachingData extends Storable
Container for main Geocaching data
INFO
all times are in format '2009-09-22T14:16:03.0000000+0200', where important is only first part (Date), so it should looks for example only as '2009-09-22T'. This should work
Groundspeak staging API: https://staging.api.groundspeak.com/Live/v6beta/geocaching.svc/help
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGeocachingData.Companion
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GeocachingData()
-
Method Summary
Modifier and Type Method Description final LonggetId()Current defined ID of cache. final UnitsetId(Long id)Current defined ID of cache. final StringgetCacheID()Whole cache ID from gc.com - so GC... final UnitsetCacheID(String cacheID)final BooleangetIsAvailable()State of cache - available or disable. final UnitsetIsAvailable(Boolean isAvailable)State of cache - available or disable. final BooleangetIsArchived()State of cache - already archived or not. final UnitsetIsArchived(Boolean isArchived)State of cache - already archived or not. final BooleangetIsPremiumOnly()Flag if cache is only for a premium members. final UnitsetIsPremiumOnly(Boolean isPremiumOnly)Flag if cache is only for a premium members. final StringgetName()Name of cache visible on all places in Locus as an title. final UnitsetName(String name)Name of cache visible on all places in Locus as an title. final StringgetPlacedBy()Name of person who placed cache (groundspeak:placed_by). final UnitsetPlacedBy(String placedBy)Name of person who placed cache (groundspeak:placed_by). final StringgetOwner()Name of cache owner (groundspeak:owner). final UnitsetOwner(String owner)Name of cache owner (groundspeak:owner). final LonggetDateHidden()Get date/time, when owner create/hide cache on a gc.com web page. final UnitsetDateHidden(Long dateHidden)Get date/time, when owner create/hide cache on a gc.com web page. final LonggetDatePublished()Date/time, when owner published cache for users. final UnitsetDatePublished(Long datePublished)Date/time, when owner published cache for users. final LonggetDateUpdated()Date/time, when cache was updated for the last time, on gc.com server. final UnitsetDateUpdated(Long dateUpdated)Date/time, when cache was updated for the last time, on gc.com server. final IntegergetType()Type of a cache, define by constants CACHE_TYPE_X. final UnitsetType(Integer type)Type of a cache, define by constants CACHE_TYPE_X. final IntegergetContainer()Size of cache container. final UnitsetContainer(Integer container)Size of cache container. final FloatgetDifficulty()Difficulty value - 1.0 - 5.0 (by 0.5). final UnitsetDifficulty(Float difficulty)Difficulty value - 1.0 - 5.0 (by 0.5). final FloatgetTerrain()Terrain value - 1.0 - 5.0 (by 0.5). final UnitsetTerrain(Float terrain)Terrain value - 1.0 - 5.0 (by 0.5). final StringgetCountry()Name of country, where is cache places. final UnitsetCountry(String country)Name of country, where is cache places. final StringgetState()Name of state, where is cache places. final UnitsetState(String state)Name of state, where is cache places. final StringgetEncodedHints()Encoded hints. final UnitsetEncodedHints(String encodedHints)Encoded hints. final List<GeocachingAttribute>getAttributes()List of attributes. final UnitsetAttributes(List<GeocachingAttribute> attributes)List of attributes. final List<GeocachingLog>getLogs()List of logs. final UnitsetLogs(List<GeocachingLog> logs)List of logs. final List<GeocachingTrackable>getTrackables()List of travel bugs. final UnitsetTrackables(List<GeocachingTrackable> trackables)List of travel bugs. final List<GeocachingWaypoint>getWaypoints()List of waypoints. final UnitsetWaypoints(List<GeocachingWaypoint> waypoints)List of waypoints. final StringgetNotes()User notes. final UnitsetNotes(String notes)User notes. final BooleangetIsComputed()Flag if cache is 'computed' - have corrected coordinates. final UnitsetIsComputed(Boolean isComputed)Flag if cache is 'computed' - have corrected coordinates. final BooleangetIsFound()Flag if cache is already found by user. final UnitsetIsFound(Boolean isFound)Flag if cache is already found by user. final StringgetCacheUrl()Stored URL to cache itself. final UnitsetCacheUrl(String cacheUrl)Stored URL to cache itself. final IntegergetFavoritePoints()Number of favorite points attached to current cache. final UnitsetFavoritePoints(Integer favoritePoints)Number of favorite points attached to current cache. final IntegergetGcVoteNumOfVotes()GcVote - number of votes. final UnitsetGcVoteNumOfVotes(Integer gcVoteNumOfVotes)GcVote - number of votes. final FloatgetGcVoteAverage()Average (not median) value. final UnitsetGcVoteAverage(Float gcVoteAverage)Average (not median) value. final FloatgetGcVoteUserVote()User value for GCVote. final UnitsetGcVoteUserVote(Float gcVoteUserVote)User value for GCVote. final DoublegetLonOriginal()Original longitude defined by owner. final UnitsetLonOriginal(Double lonOriginal)Original longitude defined by owner. final DoublegetLatOriginal()Original latitude defined by owner. final UnitsetLatOriginal(Double latOriginal)Original latitude defined by owner. final List<GeocachingImage>getImages()List of attached images. final UnitsetImages(List<GeocachingImage> images)List of attached images. final IntegergetSource()Define source of this cache as constant value. final UnitsetSource(Integer source)Define source of this cache as constant value. final StringgetContainerText()final Array<String>getDescriptions()final StringgetCacheUrlFull()final BooleangetIsCacheValid()final StorablegetCopy()final ByteArraygetAsBytes()final UnitsetContainer(String value)final BooleansetDescriptions(String shortDesc, Boolean shortInHtml, String longDesc, Boolean longInHtml)final UnitsetType(String type)Set type of the cache from the String representation. final BooleancontainsInData(String text)Check if owner, country, state or description contains certain defined text. -
-
Method Detail
-
getId
final Long getId()
Current defined ID of cache. This ID is just optional unique identification as long number that has no extra usage in Locus.
-
setId
final Unit setId(Long id)
Current defined ID of cache. This ID is just optional unique identification as long number that has no extra usage in Locus.
-
getCacheID
final String getCacheID()
Whole cache ID from gc.com - so GC... REQUIRED
-
setCacheID
final Unit setCacheID(String cacheID)
-
getIsAvailable
final Boolean getIsAvailable()
State of cache - available or disable.
-
setIsAvailable
final Unit setIsAvailable(Boolean isAvailable)
State of cache - available or disable.
-
getIsArchived
final Boolean getIsArchived()
State of cache - already archived or not.
-
setIsArchived
final Unit setIsArchived(Boolean isArchived)
State of cache - already archived or not.
-
getIsPremiumOnly
final Boolean getIsPremiumOnly()
Flag if cache is only for a premium members.
-
setIsPremiumOnly
final Unit setIsPremiumOnly(Boolean isPremiumOnly)
Flag if cache is only for a premium members.
-
setName
final Unit setName(String name)
Name of cache visible on all places in Locus as an title. REQUIRED!
-
getPlacedBy
final String getPlacedBy()
Name of person who placed cache (groundspeak:placed_by). It is displayed in Locus when tapped on point or in main GC page.
-
setPlacedBy
final Unit setPlacedBy(String placedBy)
Name of person who placed cache (groundspeak:placed_by). It is displayed in Locus when tapped on point or in main GC page.
-
getOwner
final String getOwner()
Name of cache owner (groundspeak:owner). This value is not displayed in Locus.
-
setOwner
final Unit setOwner(String owner)
Name of cache owner (groundspeak:owner). This value is not displayed in Locus.
-
getDateHidden
final Long getDateHidden()
Get date/time, when owner create/hide cache on a gc.com web page.
-
setDateHidden
final Unit setDateHidden(Long dateHidden)
Get date/time, when owner create/hide cache on a gc.com web page.
-
getDatePublished
final Long getDatePublished()
Date/time, when owner published cache for users. Usually most important date.
-
setDatePublished
final Unit setDatePublished(Long datePublished)
Date/time, when owner published cache for users. Usually most important date.
-
getDateUpdated
final Long getDateUpdated()
Date/time, when cache was updated for the last time, on gc.com server.
-
setDateUpdated
final Unit setDateUpdated(Long dateUpdated)
Date/time, when cache was updated for the last time, on gc.com server.
-
getContainer
final Integer getContainer()
Size of cache container. Size is defined by parameters CACHE_SIZE_X, or by text directly.
-
setContainer
final Unit setContainer(Integer container)
Size of cache container. Size is defined by parameters CACHE_SIZE_X, or by text directly.
-
getDifficulty
final Float getDifficulty()
Difficulty value - 1.0 - 5.0 (by 0.5).
-
setDifficulty
final Unit setDifficulty(Float difficulty)
Difficulty value - 1.0 - 5.0 (by 0.5).
-
getTerrain
final Float getTerrain()
Terrain value - 1.0 - 5.0 (by 0.5).
-
setTerrain
final Unit setTerrain(Float terrain)
Terrain value - 1.0 - 5.0 (by 0.5).
-
getCountry
final String getCountry()
Name of country, where is cache places.
-
setCountry
final Unit setCountry(String country)
Name of country, where is cache places.
-
getEncodedHints
final String getEncodedHints()
Encoded hints.
-
setEncodedHints
final Unit setEncodedHints(String encodedHints)
Encoded hints.
-
getAttributes
final List<GeocachingAttribute> getAttributes()
List of attributes.
-
setAttributes
final Unit setAttributes(List<GeocachingAttribute> attributes)
List of attributes.
-
getLogs
final List<GeocachingLog> getLogs()
List of logs.
-
setLogs
final Unit setLogs(List<GeocachingLog> logs)
List of logs.
-
getTrackables
final List<GeocachingTrackable> getTrackables()
List of travel bugs.
-
setTrackables
final Unit setTrackables(List<GeocachingTrackable> trackables)
List of travel bugs.
-
getWaypoints
final List<GeocachingWaypoint> getWaypoints()
List of waypoints.
-
setWaypoints
final Unit setWaypoints(List<GeocachingWaypoint> waypoints)
List of waypoints.
-
getIsComputed
final Boolean getIsComputed()
Flag if cache is 'computed' - have corrected coordinates.
-
setIsComputed
final Unit setIsComputed(Boolean isComputed)
Flag if cache is 'computed' - have corrected coordinates.
-
getIsFound
final Boolean getIsFound()
Flag if cache is already found by user.
-
setIsFound
final Unit setIsFound(Boolean isFound)
Flag if cache is already found by user.
-
getCacheUrl
final String getCacheUrl()
Stored URL to cache itself. Keep in mind that this value may not be defined or may include various formats. Suggested is to use .getCacheUrlFull method, that should return valid URL.
-
setCacheUrl
final Unit setCacheUrl(String cacheUrl)
Stored URL to cache itself. Keep in mind that this value may not be defined or may include various formats. Suggested is to use .getCacheUrlFull method, that should return valid URL.
-
getFavoritePoints
final Integer getFavoritePoints()
Number of favorite points attached to current cache.
-
setFavoritePoints
final Unit setFavoritePoints(Integer favoritePoints)
Number of favorite points attached to current cache.
-
getGcVoteNumOfVotes
final Integer getGcVoteNumOfVotes()
GcVote - number of votes.
-
setGcVoteNumOfVotes
final Unit setGcVoteNumOfVotes(Integer gcVoteNumOfVotes)
GcVote - number of votes.
-
getGcVoteAverage
final Float getGcVoteAverage()
Average (not median) value.
-
setGcVoteAverage
final Unit setGcVoteAverage(Float gcVoteAverage)
Average (not median) value.
-
getGcVoteUserVote
final Float getGcVoteUserVote()
User value for GCVote.
-
setGcVoteUserVote
final Unit setGcVoteUserVote(Float gcVoteUserVote)
User value for GCVote.
-
getLonOriginal
final Double getLonOriginal()
Original longitude defined by owner.
-
setLonOriginal
final Unit setLonOriginal(Double lonOriginal)
Original longitude defined by owner.
-
getLatOriginal
final Double getLatOriginal()
Original latitude defined by owner.
-
setLatOriginal
final Unit setLatOriginal(Double latOriginal)
Original latitude defined by owner.
-
getImages
final List<GeocachingImage> getImages()
List of attached images.
-
setImages
final Unit setImages(List<GeocachingImage> images)
List of attached images.
-
getSource
final Integer getSource()
Define source of this cache as constant value. Be aware, that this value is automatically set when setup a cacheID, so use this method after the .setCacheID function is used.
-
setSource
final Unit setSource(Integer source)
Define source of this cache as constant value. Be aware, that this value is automatically set when setup a cacheID, so use this method after the .setCacheID function is used.
-
getContainerText
final String getContainerText()
-
getDescriptions
final Array<String> getDescriptions()
-
getCacheUrlFull
final String getCacheUrlFull()
-
getIsCacheValid
final Boolean getIsCacheValid()
-
getAsBytes
final ByteArray getAsBytes()
-
setContainer
final Unit setContainer(String value)
-
setDescriptions
final Boolean setDescriptions(String shortDesc, Boolean shortInHtml, String longDesc, Boolean longInHtml)
-
containsInData
final Boolean containsInData(String text)
Check if owner, country, state or description contains certain defined text.
- Parameters:
text- text that we search
-
-
-
-