com.restfb.types
Class Video

java.lang.Object
  extended by com.restfb.types.FacebookType
      extended by com.restfb.types.NamedFacebookType
          extended by com.restfb.types.Video
All Implemented Interfaces:
Serializable

public class Video
extends NamedFacebookType

Represents the Video 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
Video()
           
 
Method Summary
 List<Comment> getComments()
          Comments for the video.
 Date getCreatedTime()
          The time the video was initially published.
 String getDescription()
          The long-form HTML description of the video.
 String getEmbedHtml()
          HTML that may be used to embed the video on another website.
 CategorizedFacebookType getFrom()
          An object containing the name and ID of the user who posted the video.
 String getIcon()
          An icon URL which represents the video.
 Integer getLength()
          The length of the video, in seconds.
 String getMessage()
          Deprecated. FB seems to have removed this field.
 String getPicture()
          A picture URL which represents the video.
 String getSource()
          A URL to the raw, playable video file.
 List<NamedFacebookType> getTags()
          Tags for the video.
 Date getUpdatedTime()
          The last time the video or its caption were updated.
 
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

Video

public Video()
Method Detail

getFrom

public CategorizedFacebookType getFrom()
An object containing the name and ID of the user who posted the video.

Returns:
An object containing the name and ID of the user who posted the video.

getMessage

public String getMessage()
Deprecated. FB seems to have removed this field.

The video title / caption.

Returns:
The video title / caption.

getDescription

public String getDescription()
The long-form HTML description of the video.

Returns:
The long-form HTML description of the video.

getLength

public Integer getLength()
The length of the video, in seconds.

Returns:
The length of the video, in seconds.

getPicture

public String getPicture()
A picture URL which represents the video.

Returns:
A picture URL which represents the video.

getIcon

public String getIcon()
An icon URL which represents the video.

Returns:
An icon URL which represents the video.

getSource

public String getSource()
A URL to the raw, playable video file.

Returns:
A URL to the raw, playable video file.
Since:
1.6.5

getEmbedHtml

public String getEmbedHtml()
HTML that may be used to embed the video on another website.

Returns:
HTML that may be used to embed the video on another website.

getTags

public List<NamedFacebookType> getTags()
Tags for the video.

Returns:
Tags for the video.
Since:
1.6.5

getComments

public List<Comment> getComments()
Comments for the video.

Returns:
Comments for the video.

getCreatedTime

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

Returns:
The time the video was initially published.

getUpdatedTime

public Date getUpdatedTime()
The last time the video or its caption were updated.

Returns:
The last time the video or its caption were updated.


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.