Package com.restfb.types
Class Album
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.NamedFacebookType
com.restfb.types.Album
- All Implemented Interfaces:
HasComments
,HasCreatedTime
,HasProfilePicture
,Serializable
public class Album
extends NamedFacebookType
implements HasProfilePicture, HasComments, HasCreatedTime
Represents the Album Graph API type.
- Since:
- 1.5
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
fillPicture
(JsonMapper jsonMapper) Whether or not the user has permission to upload to this album.The comments for this album.getCount()
The number of photos in this album.The album cover photo ID.The time the photo album was initially created.The description of the album.getEvent()
The event associated with this album.getFrom()
An object containing the ID and name of the profile who posted this album.getLikes()
People who like this.getLink()
A link to this album on Facebook.The location of the album.The album's picture, if provided.getPlace()
The place associated with this album.The privacy settings for the album.The last time the photo album was updated.void
setCanUpload
(Boolean canUpload) Whether or not the user has permission to upload to this album.void
setComments
(Comments comments) The comments for this album.void
The number of photos in this album.void
setCoverPhoto
(Photo coverPhoto) The album cover photo ID.void
setCreatedTime
(Date createdTime) The time the photo album was initially created.void
setDescription
(String description) The description of the album.void
The event associated with this album.void
An object containing the ID and name of the profile who posted this album.void
People who like this.void
A link to this album on Facebook.void
setLocation
(String location) The location of the album.void
setPicture
(ProfilePictureSource picture) The album's picture, if provided.void
The place associated with this album.void
setPrivacy
(String privacy) The privacy settings for the album.void
setUpdatedTime
(Date updatedTime) The last time the photo album was updated.Methods inherited from class com.restfb.types.NamedFacebookType
getName, setName
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.restfb.types.features.HasProfilePicture
convertPicture
-
Constructor Details
-
Album
public Album()
-
-
Method Details
-
fillPicture
-
getFrom
An object containing the ID and name of the profile who posted this album.- Returns:
- An object containing the ID and name of the profile who posted this album.
-
setFrom
An object containing the ID and name of the profile who posted this album. -
getDescription
The description of the album.- Returns:
- The description of the album.
-
setDescription
The description of the album. -
getLocation
The location of the album.- Returns:
- The location of the album.
-
setLocation
The location of the album. -
getLink
A link to this album on Facebook.- Returns:
- A link to this album on Facebook.
-
setLink
A link to this album on Facebook. -
getCount
The number of photos in this album.- Returns:
- The number of photos in this album.
-
setCount
The number of photos in this album. -
getCoverPhoto
The album cover photo ID.- Returns:
- The album cover photo ID
-
setCoverPhoto
The album cover photo ID. -
getPrivacy
The privacy settings for the album.- Returns:
- The privacy settings for the album.
-
setPrivacy
The privacy settings for the album. -
getCanUpload
Whether or not the user has permission to upload to this album.- Returns:
- The
can_upload
setting for this album.
-
setCanUpload
Whether or not the user has permission to upload to this album. -
getCreatedTime
The time the photo album was initially created.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- The time the photo album was initially created.
-
setCreatedTime
The time the photo album was initially created. -
getUpdatedTime
The last time the photo album was updated.- Returns:
- The last time the photo album was updated.
-
setUpdatedTime
The last time the photo album was updated. -
getPlace
The place associated with this album.- Returns:
- The place associated with this album.
-
setPlace
The place associated with this album. -
getEvent
The event associated with this album.- Returns:
- The event associated with this album.
-
setEvent
The event associated with this album. -
getComments
The comments for this album.- Specified by:
getComments
in interfaceHasComments
- Returns:
- The comments for this album.
-
setComments
The comments for this album. -
getPicture
The album's picture, if provided. To force Facebook to fill thepicture
field you have to fetch the album with thefields=picture
parameter, otherwise the picture isnull
.- Specified by:
getPicture
in interfaceHasProfilePicture
- Returns:
- the album's picture as ProfilePictureSource object
-
setPicture
The album's picture, if provided. To force Facebook to fill thepicture
field you have to fetch the album with thefields=picture
parameter, otherwise the picture isnull
. -
getLikes
People who like this.- Returns:
- The likes on this album.
-
setLikes
People who like this.
-