|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aetrion.flickr.favorites.FavoritesInterface
public class FavoritesInterface
Interface for working with Flickr favorites.
Field Summary | |
---|---|
static java.lang.String |
METHOD_ADD
|
static java.lang.String |
METHOD_GET_LIST
|
static java.lang.String |
METHOD_GET_PUBLIC_LIST
|
static java.lang.String |
METHOD_REMOVE
|
Constructor Summary | |
---|---|
FavoritesInterface(java.lang.String apiKey,
Transport transportAPI)
|
Method Summary | |
---|---|
void |
add(java.lang.String photoId)
Add a photo to the user's favorites. |
PhotoList |
getList(java.lang.String userId,
int perPage,
int page,
java.util.Set extras)
Get the collection of favorites for the calling user or the specified user ID. |
PhotoList |
getPublicList(java.lang.String userId,
int perPage,
int page,
java.util.Set extras)
Get the specified user IDs public contacts. |
void |
remove(java.lang.String photoId)
Remove the specified photo from the user's favorites. |
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_ADD
public static final java.lang.String METHOD_GET_LIST
public static final java.lang.String METHOD_GET_PUBLIC_LIST
public static final java.lang.String METHOD_REMOVE
Constructor Detail |
---|
public FavoritesInterface(java.lang.String apiKey, Transport transportAPI)
Method Detail |
---|
public void add(java.lang.String photoId) throws java.io.IOException, org.xml.sax.SAXException, FlickrException
photoId
- The photo ID
java.io.IOException
org.xml.sax.SAXException
FlickrException
public PhotoList getList(java.lang.String userId, int perPage, int page, java.util.Set extras) throws java.io.IOException, org.xml.sax.SAXException, FlickrException
userId
- The optional user ID. Null value will be ignored.perPage
- The optional per page value. Values <= 0 will be ignored.page
- The page to view. Values <= 0 will be ignored.extras
- a Set Strings representing extra parameters to send
java.io.IOException
org.xml.sax.SAXException
FlickrException
Extras
public PhotoList getPublicList(java.lang.String userId, int perPage, int page, java.util.Set extras) throws java.io.IOException, org.xml.sax.SAXException, FlickrException
userId
- The user IDperPage
- The optional per page value. Values <= 0 will be ignored.page
- The optional page to view. Values <= 0 will be ignoredextras
- A Set of extra parameters to send
java.io.IOException
org.xml.sax.SAXException
FlickrException
Extras
public void remove(java.lang.String photoId) throws java.io.IOException, org.xml.sax.SAXException, FlickrException
photoId
- The photo id
java.io.IOException
org.xml.sax.SAXException
FlickrException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |