Make post returned by post reply optional.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / PostReply.java
index 4452e2e..36921dd 100644 (file)
@@ -26,11 +26,18 @@ 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.