From 7d3b9a9bf298601486e7bc9fd869c6ee9f5f3347 Mon Sep 17 00:00:00 2001 From: "Luis F. Chiroque" Date: Mon, 30 Nov 2015 15:09:32 +0100 Subject: [PATCH] Root reblogging information (reblogged_root_id & reblogged_root_name) added to Post. --- .../java/com/tumblr/jumblr/types/Post.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/main/java/com/tumblr/jumblr/types/Post.java b/src/main/java/com/tumblr/jumblr/types/Post.java index 7a46cd9..0848e0c 100644 --- a/src/main/java/com/tumblr/jumblr/types/Post.java +++ b/src/main/java/com/tumblr/jumblr/types/Post.java @@ -62,6 +62,8 @@ public String getValue() { private String slug; private Long reblogged_from_id; private String reblogged_from_name; + private Long reblogged_root_id; + private String reblogged_root_name; private Long note_count; private List notes; @@ -239,6 +241,26 @@ public String getRebloggedFromName() { return reblogged_from_name; } + /** + * Get the ID of the root post that this post reblogged + * @return the ID + */ + public Long getRebloggedRootId() { + return reblogged_root_id; + } + + /** + * Get name of the root blog that this post reblogged + * @return the root blog name for the post that this post reblogged + */ + public String getRebloggedRootName() { + return reblogged_root_name; + } + + /** + * Get the notes on this post. You must set "notes_info" to "true" in the + * options map for this to work. + * @return a copy of the array of the notes on this post /** * Get the notes on this post. You must set "notes_info" to "true" in the * options map for this to work.