Return ID of the post from post reply.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / PostReply.java
index 4c7c8d3..8dc6f93 100644 (file)
@@ -26,6 +26,13 @@ package net.pterodactylus.sone.data;
 public interface PostReply extends Reply<PostReply> {
 
        /**
+        * Returns the ID of the post this reply refers to.
+        *
+        * @return The ID of the post this reply refers to
+        */
+       public String getPostId();
+
+       /**
         * Returns the post this reply refers to.
         *
         * @return The post this reply refers to
@@ -35,10 +42,10 @@ public interface PostReply extends Reply<PostReply> {
        /**
         * Sets the post this reply refers to.
         *
-        * @param post
-        *            The post this reply refers to
+        * @param postId
+        *            The ID of the post to reply to
         * @return This reply
         */
-       public PostReply setPost(Post post);
+       public PostReply setPost(String postId);
 
-}
\ No newline at end of file
+}