public class FavoritesInterface
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
METHOD_ADD |
static java.lang.String |
METHOD_GET_CONTEXT |
static java.lang.String |
METHOD_GET_LIST |
static java.lang.String |
METHOD_GET_PUBLIC_LIST |
static java.lang.String |
METHOD_REMOVE |
| Constructor and Description |
|---|
FavoritesInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String photoId)
Add a photo to the user's favorites.
|
PhotoContext |
getContext(java.lang.String photoId,
java.lang.String userId)
Returns next and previous favorites for a photo in a user's favorites
|
PhotoList<Photo> |
getList(java.lang.String userId,
int perPage,
int page,
java.util.Set<java.lang.String> extras)
Get the collection of favorites for the calling user or the specified user ID.
|
PhotoList<Photo> |
getPublicList(java.lang.String userId,
int perPage,
int page,
java.util.Set<java.lang.String> extras)
Get the specified user IDs public contacts.
|
void |
remove(java.lang.String photoId)
Remove the specified photo from the user's favorites.
|
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
public static final java.lang.String METHOD_GET_CONTEXT
public FavoritesInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI)
public void add(java.lang.String photoId)
throws FlickrException
photoId - The photo IDFlickrExceptionpublic PhotoList<Photo> getList(java.lang.String userId, int perPage, int page, java.util.Set<java.lang.String> extras) throws 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 sendFlickrExceptionExtraspublic PhotoList<Photo> getPublicList(java.lang.String userId, int perPage, int page, java.util.Set<java.lang.String> extras) throws 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 sendFlickrExceptionExtraspublic void remove(java.lang.String photoId)
throws FlickrException
photoId - The photo idFlickrExceptionpublic PhotoContext getContext(java.lang.String photoId, java.lang.String userId) throws FlickrException
photoId - The photo iduserId - The user's IDFlickrException