|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aetrion.flickr.photos.geo.GeoInterface
public class GeoInterface
Access to the flickr.photos.geo methods.
Field Summary | |
---|---|
static java.lang.String |
METHOD_GET_LOCATION
|
static java.lang.String |
METHOD_GET_PERMS
|
static java.lang.String |
METHOD_REMOVE_LOCATION
|
static java.lang.String |
METHOD_SET_LOCATION
|
static java.lang.String |
METHOD_SET_PERMS
|
Constructor Summary | |
---|---|
GeoInterface(java.lang.String apiKey,
Transport transport)
|
Method Summary | |
---|---|
GeoData |
getLocation(java.lang.String photoId)
Get the geo data (latitude and longitude and the accuracy level) for a photo. |
GeoPermissions |
getPerms(java.lang.String photoId)
Get permissions for who may view geo data for a photo. |
void |
removeLocation(java.lang.String photoId)
Removes the geo data associated with a photo. |
void |
setLocation(java.lang.String photoId,
GeoData location)
Sets the geo data (latitude and longitude and, optionally, the accuracy level) for a photo. |
void |
setPerms(java.lang.String photoId,
GeoPermissions perms)
Set the permission for who may view the geo data associated with a photo. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String METHOD_GET_LOCATION
public static final java.lang.String METHOD_GET_PERMS
public static final java.lang.String METHOD_REMOVE_LOCATION
public static final java.lang.String METHOD_SET_LOCATION
public static final java.lang.String METHOD_SET_PERMS
Constructor Detail |
---|
public GeoInterface(java.lang.String apiKey, Transport transport)
Method Detail |
---|
public GeoData getLocation(java.lang.String photoId) throws java.io.IOException, org.xml.sax.SAXException, FlickrException
photoId
- reqired photo id, not null
org.xml.sax.SAXException
java.io.IOException
FlickrException
- if photo id is invalid, if photo has no geodata
or if any other error has been reported in the response.public GeoPermissions getPerms(java.lang.String photoId) throws java.io.IOException, org.xml.sax.SAXException, FlickrException
photoId
- reqired photo id, not null
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
java.io.IOException
FlickrException
FlickrException
- if photo id is invalid, if photo has no geodata
or if any other error has been reported in the response.public void removeLocation(java.lang.String photoId) throws java.io.IOException, org.xml.sax.SAXException, FlickrException
org.xml.sax.SAXException
java.io.IOException
FlickrException
public void setLocation(java.lang.String photoId, GeoData location) throws java.io.IOException, org.xml.sax.SAXException, FlickrException
photoId
- The id of the photo to cet permissions for.location
- geo data with optional accuracy (1-16), accuracy 0 to use the default.
org.xml.sax.SAXException
java.io.IOException
FlickrException
public void setPerms(java.lang.String photoId, GeoPermissions perms) throws java.io.IOException, org.xml.sax.SAXException, FlickrException
photoId
- The id of the photo to set permissions for.perms
- Permissions, who can see the geo data of this photo
org.xml.sax.SAXException
java.io.IOException
FlickrException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |