diff --git a/src/main/java/com/tumblr/jumblr/types/Blog.java b/src/main/java/com/tumblr/jumblr/types/Blog.java index 43c28e5..a0b203f 100644 --- a/src/main/java/com/tumblr/jumblr/types/Blog.java +++ b/src/main/java/com/tumblr/jumblr/types/Blog.java @@ -12,7 +12,7 @@ public class Blog extends Resource { private String name; private String title; private String description; - private int posts, likes, followers; + private int posts, likes, followers, drafts, queue; private Long updated; private boolean ask, ask_anon; @@ -56,6 +56,22 @@ public Integer getLikeCount() { return this.likes; } + /** + * Get the number of drafts for this blog + * @return int the number of drafts + */ + public Integer getDraftCount() { + return this.drafts; + } + + /** + * Get the number of Queued Posts for this blog + * @return int the number of Queued Posts + */ + public Integer getQueuedCount() { + return this.queue; + } + /** * Get the time of the most recent post (in seconds since epoch) * @return Long of time @@ -211,4 +227,4 @@ public void setName(String name) { this.name = name; } -} \ No newline at end of file +} diff --git a/src/main/java/com/tumblr/jumblr/types/Post.java b/src/main/java/com/tumblr/jumblr/types/Post.java index cb12b15..93894a3 100644 --- a/src/main/java/com/tumblr/jumblr/types/Post.java +++ b/src/main/java/com/tumblr/jumblr/types/Post.java @@ -375,6 +375,22 @@ public void setDate(Date date) { setDate(df.format(date)); } + /** + * Set the source title for this post + * @param string source title + */ + public void setSourceTitle(String title) { + this.source_title = title; + } + + /** + * Set the source URL for this post + * @param string value of the source URL + */ + public void setSourceUrl(String urlString) { + this.source_url = urlString; + } + /** * Set the state for this post * @param state the state @@ -430,6 +446,8 @@ protected Map detail() { map.put("slug", slug); map.put("date", date); map.put("type", getType().getValue()); + map.put("source_url", source_url); + map.put("source_title", source_title); return map; } diff --git a/src/main/java/com/tumblr/jumblr/types/VideoPost.java b/src/main/java/com/tumblr/jumblr/types/VideoPost.java index f37186d..05677fe 100644 --- a/src/main/java/com/tumblr/jumblr/types/VideoPost.java +++ b/src/main/java/com/tumblr/jumblr/types/VideoPost.java @@ -12,7 +12,7 @@ public class VideoPost extends Post { private List