public class Post extends Resource
Constructor and Description |
---|
Post() |
Modifier and Type | Method and Description |
---|---|
void |
addTag(String tag)
Add a tag
|
void |
delete()
Delete this post
|
protected Map<String,Object> |
detail()
Detail for this post
|
String |
getAuthorId()
Get the id of the author of the 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
|
Long |
getNoteCount()
Get the note count for this post
|
List<Note> |
getNotes()
Get the notes on this post.
|
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 |
getSlug()
Get the slug
|
String |
getSourceTitle()
Get the source title for this post
|
String |
getSourceUrl()
Get the source URL 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
|
public String getAuthorId()
public Boolean isLiked()
public String getSourceTitle()
public String getSourceUrl()
public Boolean isMobile()
public Boolean isBookmarklet()
public String getFormat()
public String getState()
public String getPostUrl()
public Long getNoteCount()
public String getDateGMT()
public Long getTimestamp()
public String getType()
public Long getId()
public String getBlogName()
public String getReblogKey()
public String getSlug()
public Long getRebloggedFromId()
public String getRebloggedFromName()
public List<Note> getNotes()
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 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 addTag(String tag)
public void removeTag(String tag)
public void save() throws IOException
IOException
Copyright © 2014. All Rights Reserved.