com.restfb.types
Class Photo

java.lang.Object
  extended by com.restfb.types.FacebookType
      extended by com.restfb.types.NamedFacebookType
          extended by com.restfb.types.Photo

public class Photo
extends NamedFacebookType

Represents the Photo Graph API type.

Since:
1.5
Author:
Mark Allen

Nested Class Summary
static class Photo.Tag
          Represents the Tag Graph API type.
 
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
 
Constructor Summary
Photo()
           
 
Method Summary
 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.
 String getLink()
          A link to the photo on Facebook.
 String getPicture()
          The album-sized view of the photo.
 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.
 
Methods inherited from class com.restfb.types.NamedFacebookType
getName
 
Methods inherited from class com.restfb.types.FacebookType
equals, getId, getMetadata, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Photo

public Photo()
Method Detail

getFrom

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.

getPicture

public String getPicture()
The album-sized view of the photo.

Returns:
The album-sized view of the photo.

getSource

public String getSource()
The full-sized source of the photo.

Returns:
The full-sized source of the photo.

getHeight

public Integer getHeight()
The height of the photo, in pixels.

Returns:
The height of the photo, in pixels.

getWidth

public Integer getWidth()
The width of the photo, in pixels.

Returns:
The width of the photo, in pixels.

getLink

public String getLink()
A link to the photo on Facebook.

Returns:
A link to the photo on Facebook.

getIcon

public String getIcon()
The icon-sized source of the photo.

Returns:
The icon-sized source of the photo.

getCreatedTime

public Date getCreatedTime()
The time the photo was initially published.

Returns:
The time the photo was initially published.

getUpdatedTime

public Date getUpdatedTime()
The last time the photo or its caption was updated.

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

getTags

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.


RestFB version 1.5.3. Copyright © 2010 Mark Allen. All Rights Reserved.