|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MediaOperations
Defines operations for working with albums, photos, and videos.
| Method Summary | |
|---|---|
java.lang.String |
createAlbum(java.lang.String name,
java.lang.String description)
Creates a new photo album. |
Album |
getAlbum(java.lang.String albumId)
Retrieves data for a specific album. |
byte[] |
getAlbumImage(java.lang.String albumId)
Retrieves an album's image as an array of bytes. |
byte[] |
getAlbumImage(java.lang.String albumId,
ImageType imageType)
Retrieves an album's image as an array of bytes. |
java.util.List<Album> |
getAlbums()
Retrieves a list of albums belonging to the authenticated user. |
java.util.List<Album> |
getAlbums(java.lang.String ownerId)
Retrieves a list of albums belonging to a specific owner (user, page, etc). |
Photo |
getPhoto(java.lang.String photoId)
Retrieve data for a specified photo. |
byte[] |
getPhotoImage(java.lang.String photoId)
Retrieves a photo's image as an array of bytes. |
byte[] |
getPhotoImage(java.lang.String photoId,
ImageType imageType)
Retrieves a photo's image as an array of bytes. |
java.util.List<Photo> |
getPhotos(java.lang.String albumId)
Retrieves photo data from a specific album. |
Video |
getVideo(java.lang.String videoId)
Retrieves data for a specific video. |
byte[] |
getVideoImage(java.lang.String videoId)
Retrieves a video's image as an array of bytes. |
byte[] |
getVideoImage(java.lang.String videoId,
ImageType imageType)
Retrieves a video's image as an array of bytes. |
java.util.List<Video> |
getVideos()
Retrieves a list of videos for the authenticated user. |
java.util.List<Video> |
getVideos(java.lang.String ownerId)
Retrieves a list of videos for a specified owner. |
| Method Detail |
|---|
java.util.List<Album> getAlbums()
Albums for the user, or an empty list if not available.java.util.List<Album> getAlbums(java.lang.String ownerId)
ownerId - the album owner's ID
Albums for the user, or an empty list if not available.Album getAlbum(java.lang.String albumId)
albumId - the album ID
Album object.
java.lang.String createAlbum(java.lang.String name,
java.lang.String description)
name - the name of the album.description - the album's description.
byte[] getAlbumImage(java.lang.String albumId)
albumId - the album ID
byte[] getAlbumImage(java.lang.String albumId,
ImageType imageType)
albumId - the album IDimageType - the image type (eg., small, normal, large. square)
java.util.List<Photo> getPhotos(java.lang.String albumId)
albumId - the album's ID
Photos in the specified album.Photo getPhoto(java.lang.String photoId)
photoId - the photo's ID
Photobyte[] getPhotoImage(java.lang.String photoId)
photoId - the photo ID
byte[] getPhotoImage(java.lang.String photoId,
ImageType imageType)
photoId - the photo IDimageType - the image type (eg., small, normal, large. square)
java.util.List<Video> getVideos()
Video belonging to the authenticated user.java.util.List<Video> getVideos(java.lang.String ownerId)
ownerId - the owner of the videos (could be a user, group, etc)
Video belonging to the specified owner.Video getVideo(java.lang.String videoId)
videoId - the ID of the video.
Video data.byte[] getVideoImage(java.lang.String videoId)
videoId - the video ID
byte[] getVideoImage(java.lang.String videoId,
ImageType imageType)
videoId - the video IDimageType - the image type (eg., small, normal, large. square)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||