public class

Photo

extends NamedFacebookType
java.lang.Object
   ↳ com.restfb.types.FacebookType
     ↳ com.restfb.types.NamedFacebookType
       ↳ org.mule.module.facebook.types.Photo

Class Overview

Represents the Photo Graph API type.

Summary

Nested Classes
class Photo.Image Represents the Image Graph API type
class Photo.Tag Represents the Tag Graph API type
Constants
long serialVersionUID
[Expand]
Inherited Constants
From class com.restfb.types.NamedFacebookType
From class com.restfb.types.FacebookType
Fields
private List<Comment> comments
private String createdTime
private CategorizedFacebookType from
private Integer height
private String icon
private List<Photo.Image> images
private Long likes
private String link
private String picture
private Integer position
private String source
private List<Photo.Tag> tags
private String updatedTime
private Integer width
[Expand]
Inherited Fields
From class com.restfb.types.NamedFacebookType
From class com.restfb.types.FacebookType
Public Constructors
Photo()
Default constructor
Photo(CategorizedFacebookType from, String picture, String source, Integer height, Integer width, String link, String icon, Integer position, String createdTime, String updatedTime, List<Photo.Tag> tags, List<Comment> comments, Long likes, List<Photo.Image> images)
Public Methods
List<Comment> getComments()
All of the comments on this photo.
Date getCreatedTime()
The time the photo was initially published.
CategorizedFacebookType getFrom()
An object containing the name and ID of the user who posted the photo.
Integer getHeight()
The height of the photo, in pixels.
String getIcon()
The icon-sized source of the photo.
List<Photo.Image> getImages()
The 4 different stored representations of the photo.
Long getLikes()
Users who like the photo.
String getLink()
A link to the photo on Facebook.
String getPicture()
The album-sized view of the photo.
Integer getPosition()
The position of this photo in the album.
String getSource()
The full-sized source of the photo.
List<Photo.Tag> getTags()
An array containing the users and their positions in this photo.
Date getUpdatedTime()
The last time the photo or its caption was updated.
Integer getWidth()
The width of the photo, in pixels.
[Expand]
Inherited Methods
From class com.restfb.types.NamedFacebookType
From class com.restfb.types.FacebookType
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 1 (0x0000000000000001)

Fields

private List<Comment> comments

private String createdTime

private CategorizedFacebookType from

private Integer height

private String icon

private List<Photo.Image> images

private Long likes

private String link

private String picture

private Integer position

private String source

private List<Photo.Tag> tags

private String updatedTime

private Integer width

Public Constructors

public Photo ()

Default constructor

public Photo (CategorizedFacebookType from, String picture, String source, Integer height, Integer width, String link, String icon, Integer position, String createdTime, String updatedTime, List<Photo.Tag> tags, List<Comment> comments, Long likes, List<Photo.Image> images)

Parameters
from
picture
source
height
width
link
icon
position
createdTime
updatedTime
tags
comments
likes
images

Public Methods

public List<Comment> getComments ()

All of the comments on this photo.

Returns
  • All of the comments on this photo.

public Date getCreatedTime ()

The time the photo was initially published.

Returns
  • The time the photo was initially published.

public CategorizedFacebookType getFrom ()

An object containing the name and ID of the user who posted the photo.

Returns
  • An object containing the name and ID of the user who posted the photo.

public Integer getHeight ()

The height of the photo, in pixels.

Returns
  • The height of the photo, in pixels.

public String getIcon ()

The icon-sized source of the photo.

Returns
  • The icon-sized source of the photo.

public List<Photo.Image> getImages ()

The 4 different stored representations of the photo.

Returns
  • The 4 different stored representations of the photo.

public Long getLikes ()

Users who like the photo.

Returns
  • Users who like the photo.

public String getLink ()

A link to the photo on Facebook.

Returns
  • A link to the photo on Facebook.

public String getPicture ()

The album-sized view of the photo.

Returns
  • The album-sized view of the photo.

public Integer getPosition ()

The position of this photo in the album.

Returns
  • The position of this photo in the album.

public String getSource ()

The full-sized source of the photo.

Returns
  • The full-sized source of the photo.

public List<Photo.Tag> getTags ()

An array containing the users and their positions in this photo. The x and y coordinates are percentages from the left and top edges of the photo, respectively.

Returns
  • An array containing the users and their positions in this photo. The x and y coordinates are percentages from the left and top edges of the photo, respectively.

public Date getUpdatedTime ()

The last time the photo or its caption was updated.

Returns
  • The last time the photo or its caption was updated.

public Integer getWidth ()

The width of the photo, in pixels.

Returns
  • The width of the photo, in pixels.