com.tumblr.jumblr.types
Class VideoPost

java.lang.Object
  extended by com.tumblr.jumblr.types.Resource
      extended by com.tumblr.jumblr.types.Post
          extended by com.tumblr.jumblr.types.VideoPost

public class VideoPost
extends Post

This class represents a post of type "video"

Author:
jc

Field Summary
 
Fields inherited from class com.tumblr.jumblr.types.Resource
client
 
Constructor Summary
VideoPost()
           
 
Method Summary
 Map<String,Object> detail()
          Get the details for this post (in addition to the base details)
 String getCaption()
          Get the caption from this post
 List<Video> getVideos()
          Get the videos from this post
 void setCaption(String caption)
          Set the caption for this post
 void setData(File file)
          Set the data for this post
 void setEmbedCode(String embed)
          Set the embed code for this post
 
Methods inherited from class com.tumblr.jumblr.types.Post
addTag, delete, getBlogName, getDateGMT, getFormat, getId, getPostUrl, getRebloggedFromId, getRebloggedFromName, getReblogKey, getSourceUrl, getState, getTags, getTimestamp, getType, isBookmarklet, isLiked, isMobile, like, reblog, reblog, removeTag, save, setBlogName, setDate, setDate, setFormat, setId, setSlug, setState, setTags, toString, unlike
 
Methods inherited from class com.tumblr.jumblr.types.Resource
getClient, setClient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VideoPost

public VideoPost()
Method Detail

getVideos

public List<Video> getVideos()
Get the videos from this post

Returns:
the videos

getCaption

public String getCaption()
Get the caption from this post

Returns:
String caption

setEmbedCode

public void setEmbedCode(String embed)
Set the embed code for this post

Parameters:
embed - the Embed HTML for this post
Throws:
IllegalArgumentException - if data is already set

setData

public void setData(File file)
Set the data for this post

Parameters:
file - the file to read from
Throws:
IllegalArgumentException - source is already set

setCaption

public void setCaption(String caption)
Set the caption for this post

Parameters:
caption - the caption to set

detail

public Map<String,Object> detail()
Get the details for this post (in addition to the base details)

Overrides:
detail in class Post
Returns:
details of this post


Copyright © 2013. All Rights Reserved.