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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Album()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillPicture(JsonMapper jsonMapper)
Boolean
getCanUpload()
Whether or not the user has permission to upload to this album.Comments
getComments()
The comments for this album.Long
getCount()
The number of photos in this album.Photo
getCoverPhoto()
The album cover photo ID.Date
getCreatedTime()
The time the photo album was initially created.String
getDescription()
The description of the album.Event
getEvent()
The event associated with this album.From
getFrom()
An object containing the ID and name of the profile who posted this album.Likes
getLikes()
People who like this.String
getLink()
A link to this album on Facebook.String
getLocation()
The location of the album.ProfilePictureSource
getPicture()
The album's picture, if provided.Place
getPlace()
The place associated with this album.String
getPrivacy()
The privacy settings for the album.Date
getUpdatedTime()
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
setCount(Long count)
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
setEvent(Event event)
The event associated with this album.void
setFrom(From from)
An object containing the ID and name of the profile who posted this album.void
setLikes(Likes likes)
People who like this.void
setLink(String link)
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
setPlace(Place place)
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 Detail
-
Album
public Album()
-
-
Method Detail
-
fillPicture
protected void fillPicture(JsonMapper jsonMapper)
-
getFrom
public From 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
public void setFrom(From from)
An object containing the ID and name of the profile who posted this album.
-
getDescription
public String getDescription()
The description of the album.- Returns:
- The description of the album.
-
setDescription
public void setDescription(String description)
The description of the album.
-
getLocation
public String getLocation()
The location of the album.- Returns:
- The location of the album.
-
setLocation
public void setLocation(String location)
The location of the album.
-
getLink
public String getLink()
A link to this album on Facebook.- Returns:
- A link to this album on Facebook.
-
getCount
public Long getCount()
The number of photos in this album.- Returns:
- The number of photos in this album.
-
getCoverPhoto
public Photo getCoverPhoto()
The album cover photo ID.- Returns:
- The album cover photo ID
-
setCoverPhoto
public void setCoverPhoto(Photo coverPhoto)
The album cover photo ID.
-
getPrivacy
public String getPrivacy()
The privacy settings for the album.- Returns:
- The privacy settings for the album.
-
setPrivacy
public void setPrivacy(String privacy)
The privacy settings for the album.
-
getCanUpload
public Boolean getCanUpload()
Whether or not the user has permission to upload to this album.- Returns:
- The
can_upload
setting for this album.
-
setCanUpload
public void setCanUpload(Boolean canUpload)
Whether or not the user has permission to upload to this album.
-
getCreatedTime
public Date getCreatedTime()
The time the photo album was initially created.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- The time the photo album was initially created.
-
setCreatedTime
public void setCreatedTime(Date createdTime)
The time the photo album was initially created.
-
getUpdatedTime
public Date getUpdatedTime()
The last time the photo album was updated.- Returns:
- The last time the photo album was updated.
-
setUpdatedTime
public void setUpdatedTime(Date updatedTime)
The last time the photo album was updated.
-
getPlace
public Place getPlace()
The place associated with this album.- Returns:
- The place associated with this album.
-
getEvent
public Event getEvent()
The event associated with this album.- Returns:
- The event associated with this album.
-
getComments
public Comments getComments()
The comments for this album.- Specified by:
getComments
in interfaceHasComments
- Returns:
- The comments for this album.
-
setComments
public void setComments(Comments comments)
The comments for this album.
-
getPicture
public ProfilePictureSource 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
public void setPicture(ProfilePictureSource picture)
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
.
-
-