|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tumblr.jumblr.types.Resource
com.tumblr.jumblr.types.Post
com.tumblr.jumblr.types.PhotoPost
public class PhotoPost
This class represents a post of type "photo"
| 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 |
|---|
public PhotoPost()
| Method Detail |
|---|
public List<Photo> getPhotos()
public boolean isPhotoset()
public String getCaption()
public Integer getWidth()
public Integer getHeight()
public void setCaption(String caption)
caption - the caption to setpublic void setSource(String source)
source - the source to set
IllegalArgumentException - data is already setpublic void setData(File file)
file - the file to read from
IllegalArgumentException - source is already setpublic void setLinkUrl(String linkUrl)
linkUrl - the link URLpublic Map<String,Object> detail()
detail in class Post
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||