public class PhotosetsCommentsInterface
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
METHOD_ADD_COMMENT |
static java.lang.String |
METHOD_DELETE_COMMENT |
static java.lang.String |
METHOD_EDIT_COMMENT |
static java.lang.String |
METHOD_GET_LIST |
| Constructor and Description |
|---|
PhotosetsCommentsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transport) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addComment(java.lang.String photosetId,
java.lang.String commentText)
Add a comment to a photoset.
|
void |
deleteComment(java.lang.String commentId)
Delete a photoset comment as the currently authenticated user.
|
void |
editComment(java.lang.String commentId,
java.lang.String commentText)
Edit the text of a comment as the currently authenticated user.
|
java.util.List<Comment> |
getList(java.lang.String photosetId)
Returns the comments for a photoset.
|
public static final java.lang.String METHOD_ADD_COMMENT
public static final java.lang.String METHOD_DELETE_COMMENT
public static final java.lang.String METHOD_EDIT_COMMENT
public static final java.lang.String METHOD_GET_LIST
public PhotosetsCommentsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transport)
public java.lang.String addComment(java.lang.String photosetId,
java.lang.String commentText)
throws FlickrException
photosetId - The id of the photoset to add a comment to.commentText - Text of the commentFlickrExceptionpublic void deleteComment(java.lang.String commentId)
throws FlickrException
commentId - The id of the comment to delete from a photoset.FlickrExceptionpublic void editComment(java.lang.String commentId,
java.lang.String commentText)
throws FlickrException
commentId - The id of the comment to edit.commentText - Update the comment to this text.FlickrExceptionpublic java.util.List<Comment> getList(java.lang.String photosetId) throws FlickrException
photosetId - The id of the photoset to fetch comments for.Comment objectsFlickrException