Only store IDs of Sones in replies.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / PostReplyBuilder.java
index 6c3e236..09eb98a 100644 (file)
@@ -28,11 +28,11 @@ public interface PostReplyBuilder extends ReplyBuilder<PostReplyBuilder> {
         * Configures this builder to set the given post as post the created reply
         * refers to.
         *
-        * @param post
-        *            The post the reply refers to
+        * @param postId
+        *            The ID of the post the reply refers to
         * @return This builder
         */
-       public PostReplyBuilder to(Post post);
+       public PostReplyBuilder to(String postId);
 
        /**
         * Verifies the configuration of this builder and creates a new post reply.
@@ -42,12 +42,12 @@ public interface PostReplyBuilder extends ReplyBuilder<PostReplyBuilder> {
         * <ul>
         * <li>Exactly one of {@link #randomId()} or {@link #withId(String)} must
         * have been called.</li>
-        * <li>The {@link #from(Sone) sender} must not be {@code null}.</li>
+        * <li>The {@link #from(String) sender} must not be {@code null}.</li>
         * <li>Exactly one of {@link #currentTime()} or {@link #withTime(long)} must
         * have been called.</li>
         * <li>The {@link #withText(String) text} must not be {@code null} and must
         * contain something other than whitespace.</li>
-        * <li>The {@link #to(Post) post} have been set.</li>
+        * <li>The {@link #to(String) post} have been set.</li>
         * </ul>
         *
         * @return The created post reply