public class Blog extends Resource
Constructor and Description |
---|
Blog() |
Modifier and Type | Method and Description |
---|---|
String |
avatar() |
String |
avatar(Integer size)
Get the avatar for this blog (of a given size
|
boolean |
canAsk()
Can we ask questions on this blog?
|
boolean |
canAskAnonymously()
Can we ask questions on this blog anonymously?
|
List<Post> |
draftPosts() |
List<Post> |
draftPosts(Map<String,?> options)
Get the draft posts for this blog
|
void |
follow()
Follow this blog
|
List<User> |
followers() |
List<User> |
followers(Map<String,?> options)
Get followers for this blog
|
String |
getDescription()
Get the description of this blog
|
Integer |
getFollowersCount() |
Integer |
getLikeCount()
Get the number of likes for this blog
|
String |
getName()
Get the name of this blog
|
Post |
getPost(Long postId)
Get an individual post by id
|
Integer |
getPostCount()
Get the number of posts for this blog
|
String |
getTitle()
Get the title of this blog
|
Long |
getUpdated()
Get the time of the most recent post (in seconds since epoch)
|
List<Post> |
likedPosts() |
List<Post> |
likedPosts(Map<String,?> options)
Get likes posts for this blog
|
<T extends Post> |
newPost(Class<T> klass)
Create a new post of a given type for this blog
|
List<Post> |
posts() |
List<Post> |
posts(Map<String,?> options)
Get the posts for this blog
|
List<Post> |
queuedPosts() |
List<Post> |
queuedPosts(Map<String,?> options)
Get the queued posts for this blog
|
void |
setName(String name)
Set the name of this blog
|
List<Post> |
submissions() |
List<Post> |
submissions(Map<String,?> options)
Get the submissions for this blog
|
void |
unfollow()
Unfollow this blog
|
public String getDescription()
public boolean canAsk()
public boolean canAskAnonymously()
public Integer getPostCount()
public Integer getLikeCount()
public Long getUpdated()
public String getTitle()
public String getName()
public String avatar(Integer size)
size
- the size to get the avatar forpublic String avatar()
public Integer getFollowersCount()
public List<User> followers(Map<String,?> options)
options
- a map of options (or null)public List<Post> posts(Map<String,?> options)
options
- a map of options (or null)public Post getPost(Long postId)
postId
- the id of the post to retrievepublic List<Post> likedPosts(Map<String,?> options)
options
- a map of options (or null)public void follow()
public void unfollow()
public List<Post> queuedPosts(Map<String,?> options)
options
- the options (or null)public List<Post> draftPosts(Map<String,?> options)
options
- the options (or null)public List<Post> submissions(Map<String,?> options)
options
- the options (or null)public <T extends Post> T newPost(Class<T> klass) throws IllegalAccessException, InstantiationException
klass
- the class of the post to makeIllegalAccessException
InstantiationException
public void setName(String name)
name
- the name to setCopyright © 2014. All Rights Reserved.