package net.pterodactylus.sone.data.impl;
-import net.pterodactylus.sone.data.ReplyBuilder;
-import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.database.ReplyBuilder;
/**
* Abstract implementation of a {@link ReplyBuilder}.
*
- * @param <C>
- * The concrete implementation of the builder
* @param <B>
* The interface implemented and exposed by the builder
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
-public class AbstractReplyBuilder<C extends AbstractReplyBuilder<C, B>, B extends ReplyBuilder<B>> implements ReplyBuilder<B> {
+public class AbstractReplyBuilder<B extends ReplyBuilder<B>> implements ReplyBuilder<B> {
/** Whether to use a random ID for the reply. */
protected boolean randomId;
protected String id;
/** The sender of the reply. */
- protected Sone sender;
+ protected String senderId;
/** Whether to use the current time when creating the reply. */
protected boolean currentTime;
*/
@Override
@SuppressWarnings("unchecked")
- public B from(Sone sender) {
- this.sender = sender;
+ public B from(String senderId) {
+ this.senderId = senderId;
return (B) this;
}