public class PoolsInterface
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_GROUPS |
static java.lang.String |
METHOD_GET_PHOTOS |
static java.lang.String |
METHOD_REMOVE |
| Constructor and Description |
|---|
PoolsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transport) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String photoId,
java.lang.String groupId)
Add a photo to a group's pool.
|
PhotoContext |
getContext(java.lang.String photoId,
java.lang.String groupId)
Get the context for a photo in the group pool.
|
java.util.Collection<Group> |
getGroups()
Get a collection of all of the user's groups.
|
PhotoList<Photo> |
getPhotos(java.lang.String groupId,
java.lang.String[] tags,
int perPage,
int page)
Convenience/Compatibility method.
|
PhotoList<Photo> |
getPhotos(java.lang.String groupId,
java.lang.String[] tags,
java.util.Set<java.lang.String> extras,
int perPage,
int page)
Get the photos for the specified group pool, optionally filtering by taf.
|
void |
remove(java.lang.String photoId,
java.lang.String groupId)
Remove the specified photo from the group.
|
public static final java.lang.String METHOD_ADD
public static final java.lang.String METHOD_GET_CONTEXT
public static final java.lang.String METHOD_GET_GROUPS
public static final java.lang.String METHOD_GET_PHOTOS
public static final java.lang.String METHOD_REMOVE
public PoolsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transport)
public void add(java.lang.String photoId,
java.lang.String groupId)
throws FlickrException
photoId - The photo IDgroupId - The group IDFlickrExceptionpublic PhotoContext getContext(java.lang.String photoId, java.lang.String groupId) throws FlickrException
photoId - The photo IDgroupId - The group IDFlickrExceptionpublic java.util.Collection<Group> getGroups() throws FlickrException
FlickrExceptionpublic PhotoList<Photo> getPhotos(java.lang.String groupId, java.lang.String[] tags, java.util.Set<java.lang.String> extras, int perPage, int page) throws FlickrException
groupId - The group IDtags - The optional tags (may be null)extras - Set of extra-attributes to include (may be null)perPage - The number of photos per page (0 to ignore)page - The page offset (0 to ignore)FlickrExceptionExtraspublic PhotoList<Photo> getPhotos(java.lang.String groupId, java.lang.String[] tags, int perPage, int page) throws FlickrException
groupId - The group IDtags - The optional tags (may be null)perPage - The number of photos per page (0 to ignore)page - The page offset (0 to ignore)FlickrExceptionExtraspublic void remove(java.lang.String photoId,
java.lang.String groupId)
throws FlickrException
photoId - The photo IDgroupId - The group IDFlickrException