com.tumblr.jumblr.types
Class PhotoPost

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

public class PhotoPost
extends Post

This class represents a post of type "photo"

Author:
jc

Field Summary
 
Fields inherited from class com.tumblr.jumblr.types.Resource
client
 
Constructor Summary
PhotoPost()
           
 
Method Summary
 Map<String,Object> detail()
          Get the detail for this post (and the base detail)
 String getCaption()
          Return the caption for this post
 Integer getHeight()
          Return the photo height
 List<Photo> getPhotos()
          Get the Photo collection for this post
 Integer getWidth()
          Return the photo width
 boolean isPhotoset()
          Return if this is a photoset or not
 void setCaption(String caption)
          Set the caption for this post
 void setData(File file)
          Set the data for this post
 void setLinkUrl(String linkUrl)
          Set the link URL for this post
 void setSource(String source)
          Set the source 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

PhotoPost

public PhotoPost()
Method Detail

getPhotos

public List<Photo> getPhotos()
Get the Photo collection for this post

Returns:
the photos

isPhotoset

public boolean isPhotoset()
Return if this is a photoset or not

Returns:
boolean

getCaption

public String getCaption()
Return the caption for this post

Returns:
the caption

getWidth

public Integer getWidth()
Return the photo width

Returns:
width

getHeight

public Integer getHeight()
Return the photo height

Returns:
height

setCaption

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

Parameters:
caption - the caption to set

setSource

public void setSource(String source)
Set the source for this post

Parameters:
source - the source to set
Throws:
IllegalArgumentException - 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

setLinkUrl

public void setLinkUrl(String linkUrl)
Set the link URL for this post

Parameters:
linkUrl - the link URL

detail

public Map<String,Object> detail()
Get the detail for this post (and the base detail)

Overrides:
detail in class Post
Returns:
the details


Copyright © 2013. All Rights Reserved.