Make post returned by post reply optional.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / PostReply.java
index 4c7c8d3..36921dd 100644 (file)
@@ -26,19 +26,26 @@ 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
         */
-       public Post getPost();
+       public Optional<Post> getPost();
 
        /**
         * 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
+}