|
||||||||||
| 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
public class Post
This class is the base of all post types on Tumblr
| Field Summary |
|---|
| Fields inherited from class com.tumblr.jumblr.types.Resource |
|---|
client |
| Constructor Summary | |
|---|---|
Post()
|
|
| Method Summary | |
|---|---|
void |
addTag(String tag)
Add a tag |
void |
delete()
Delete this post |
protected Map<String,Object> |
detail()
Detail for this post |
String |
getBlogName()
Get the blog name |
String |
getDateGMT()
Get date of this post as String |
String |
getFormat()
Get the format for this post |
Long |
getId()
Get this post's ID |
String |
getPostUrl()
Get the post URL for this post |
Long |
getRebloggedFromId()
Get the ID of the post that this post reblogged |
String |
getRebloggedFromName()
Get name of the blog that this post reblogged |
String |
getReblogKey()
Get the reblog key |
String |
getSourceUrl()
Get the source title for this post |
String |
getState()
Get the current state for this post |
List<String> |
getTags()
Get a list of the tags for this post |
Long |
getTimestamp()
Get the timestamp of this post |
String |
getType()
Get the type of this post |
Boolean |
isBookmarklet()
Get whether or not this post was from the bookmarklet |
Boolean |
isLiked()
Get whether or not this post is liked |
Boolean |
isMobile()
Get whether or not this post was from mobile |
void |
like()
Like this post |
Post |
reblog(String blogName)
|
Post |
reblog(String blogName,
Map<String,?> options)
Reblog this post |
void |
removeTag(String tag)
Remove a tag |
void |
save()
Save this post |
void |
setBlogName(String blogName)
Set the blog name for this post |
void |
setDate(Date date)
Set the date as a date |
void |
setDate(String dateString)
Set the data as a string |
void |
setFormat(String format)
Set the format |
void |
setId(long id)
Set the id for this post |
void |
setSlug(String slug)
Set the slug |
void |
setState(String state)
Set the state for this post |
void |
setTags(List<String> tags)
Set the tags for this post |
String |
toString()
Post toString |
void |
unlike()
Unlike this post |
| 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 Post()
| Method Detail |
|---|
public Boolean isLiked()
public String getSourceUrl()
public Boolean isMobile()
public Boolean isBookmarklet()
public String getFormat()
public String getState()
public String getPostUrl()
public List<String> getTags()
public String getDateGMT()
public Long getTimestamp()
public String getType()
public Long getId()
public String getBlogName()
public String getReblogKey()
public Long getRebloggedFromId()
public String getRebloggedFromName()
public void delete()
public Post reblog(String blogName,
Map<String,?> options)
blogName - the blog name to reblog ontooptions - options to reblog with (or null)
public Post reblog(String blogName)
public void like()
public void unlike()
public void setBlogName(String blogName)
blogName - the blog name to setpublic void setId(long id)
id - The id of the postpublic void setFormat(String format)
format - the formatpublic void setSlug(String slug)
public void setDate(String dateString)
dateString - the date to setpublic void setDate(Date date)
date - the date to setpublic void setState(String state)
state - the statepublic void setTags(List<String> tags)
public void addTag(String tag)
public void removeTag(String tag)
public void save()
throws IOException
IOExceptionprotected Map<String,Object> detail()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||