|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.arcao.geocaching.api.GeocachingApi
public abstract class GeocachingApi
Abstract class of Geocaching API
| Field Summary | |
|---|---|
protected String |
session
|
| Constructor Summary | |
|---|---|
GeocachingApi()
|
|
| Method Summary | |
|---|---|
abstract void |
closeSession()
Close current used session |
CacheLog |
createFieldNoteAndPublish(FieldNote fieldNote,
boolean publish,
ImageData imageData,
boolean favoriteThisCache)
Create field note and publish them or store them to list of Field notes on Geocaching site. |
abstract CacheLog |
createFieldNoteAndPublish(String cacheCode,
LogType logType,
Date dateLogged,
String note,
boolean publish,
ImageData imageData,
boolean favoriteThisCache)
Create field note and publish them or store them to list of Field notes on Geocaching site. |
Geocache |
getCache(String cacheCode,
int cacheLogCount,
int trackableCount)
Get a full information about cache. |
abstract List<CacheLog> |
getCacheLogsByCacheCode(String cacheCode,
int startIndex,
int maxPerPage)
Get a list of cache logs in given cache. |
SimpleGeocache |
getCacheSimple(String cacheCode)
Get a basic information about cache. |
abstract List<SimpleGeocache> |
getMoreGeocaches(boolean isLite,
int startIndex,
int maxPerPage,
int geocacheLogCount,
int trackableLogCount)
|
String |
getSession()
Gets a session id for current logged user |
abstract Trackable |
getTrackable(String trackableCode,
int trackableLogCount)
Get a trackable object for given trackable code. |
abstract List<Trackable> |
getTrackablesByCacheCode(String cacheCode,
int startIndex,
int maxPerPage,
int trackableLogCount)
Get a list of trackables which is currently placed in a cache. |
abstract UserProfile |
getYourUserProfile(boolean favoritePointData,
boolean geocacheData,
boolean publicProfileData,
boolean souvenirData,
boolean trackableData)
Get a information about user |
abstract boolean |
isSessionValid()
Check if current used session is still valid |
void |
openSession(String session)
Open a session with giving session id of already logged-in user |
abstract void |
openSession(String userName,
String password)
Open a new session and log-in user |
abstract List<SimpleGeocache> |
searchForGeocaches(boolean isLite,
int maxPerPage,
int geocacheLogCount,
int trackableLogCount,
Filter[] filters)
Search for geocaches and return list of found. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String session
| Constructor Detail |
|---|
public GeocachingApi()
| Method Detail |
|---|
public String getSession()
public void openSession(String session)
throws GeocachingApiException
session - session id
GeocachingApiException - If Geocaching API error occurs
public abstract void openSession(String userName,
String password)
throws GeocachingApiException
userName - user namepassword - password
GeocachingApiException - If Geocaching API error occurspublic abstract void closeSession()
public abstract boolean isSessionValid()
public abstract Trackable getTrackable(String trackableCode,
int trackableLogCount)
throws GeocachingApiException
trackableCode - trackable codetrackableLogCount - count of trackable logs to get
GeocachingApiException - If error occurs during getting information
public abstract List<Trackable> getTrackablesByCacheCode(String cacheCode,
int startIndex,
int maxPerPage,
int trackableLogCount)
throws GeocachingApiException
cacheCode - cache codestartIndex - count of trackables to skipmaxPerPage - count of trackables to gettrackableLogCount - count of trackable logs to get
GeocachingApiException - If error occurs during getting information
public abstract List<CacheLog> getCacheLogsByCacheCode(String cacheCode,
int startIndex,
int maxPerPage)
throws GeocachingApiException
cacheCode - cache codestartIndex - count of logs to skipmaxPerPage - count of logs to get
GeocachingApiException - If error occurs during getting information
public SimpleGeocache getCacheSimple(String cacheCode)
throws GeocachingApiException
cacheCode - cache code
GeocachingApiException - If error occurs during getting information
public Geocache getCache(String cacheCode,
int cacheLogCount,
int trackableCount)
throws GeocachingApiException
cacheCode - cache codecacheLogCount - count of logs to gettrackableCount - count of trackables to get
GeocachingApiException - If error occurs during getting information
public abstract List<SimpleGeocache> searchForGeocaches(boolean isLite,
int maxPerPage,
int geocacheLogCount,
int trackableLogCount,
Filter[] filters)
throws GeocachingApiException
isLite - true if return a basic information about caches or fales for full
information about cachesmaxPerPage - count of caches to getgeocacheLogCount - count of logs to gettrackableLogCount - count of trackables to getfilters - used filters while searching
GeocachingApiException - If error occurs during searching caches
public abstract List<SimpleGeocache> getMoreGeocaches(boolean isLite,
int startIndex,
int maxPerPage,
int geocacheLogCount,
int trackableLogCount)
throws GeocachingApiException
isLite - true if return a basic information about caches or fales for full
information about cachesstartIndex - count of caches to skipmaxPerPage - count of caches to getgeocacheLogCount - count of caches to gettrackableLogCount - count of trackables to get
GeocachingApiException - If error occurs during searching caches
public abstract UserProfile getYourUserProfile(boolean favoritePointData,
boolean geocacheData,
boolean publicProfileData,
boolean souvenirData,
boolean trackableData)
throws GeocachingApiException
favoritePointData - include favorites pointsgeocacheData - include information about cachespublicProfileData - include public profile informationsouvenirData - include souvenirstrackableData - include trackables
GeocachingApiException - If error occurs during getting information
public abstract CacheLog createFieldNoteAndPublish(String cacheCode,
LogType logType,
Date dateLogged,
String note,
boolean publish,
ImageData imageData,
boolean favoriteThisCache)
throws GeocachingApiException
cacheCode - geocache which can own this field notelogType - type of logdateLogged - when cache was foundnote - text of field notepublish - true if publish log to cache or false to add to Field note list on
Geocaching siteimageData - data about image to publish together or null to not publish any
imagefavoriteThisCache - true if add cache to favorite list otherwise false
GeocachingApiException - If error occurs during sending field note
public CacheLog createFieldNoteAndPublish(FieldNote fieldNote,
boolean publish,
ImageData imageData,
boolean favoriteThisCache)
throws GeocachingApiException
fieldNote - Field note objectpublish - true if publish log to cache or false to add to Field note list on
Geocaching siteimageData - data about image to publish together or null to not publish any
imagefavoriteThisCache - true if add cache to favorite list otherwise false
GeocachingApiException - If error occurs during sending field note
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||