import net.pterodactylus.sone.data.PostReply;
+import com.google.common.base.Optional;
+
/**
* Builder for a {@link PostReply} object.
*
public interface PostReplyBuilder extends ReplyBuilder<PostReplyBuilder> {
/**
- * Configures this builder to set the given post as post the created reply
- * refers to.
- *
- * @param postId
- * The ID of the post the reply refers to
- * @return This builder
- */
- public PostReplyBuilder to(String postId);
-
- /**
* Verifies the configuration of this builder and creates a new post reply.
* <p>
* The following conditions must be met in order for the configuration to be
* @throws IllegalStateException
* if this builder’s configuration is not valid
*/
- public PostReply build() throws IllegalStateException;
+ public PostReply build(Optional<PostReplyCreated> postReplyCreated) throws IllegalStateException;
+
+ interface PostReplyCreated {
+
+ void postReplyCreated(PostReply postReply);
+
+ }
}