me.chanjar.weixin.mp.builder.kefu.BaseBuilder Maven / Gradle / Ivy
package me.chanjar.weixin.mp.builder.kefu;
import me.chanjar.weixin.mp.bean.kefu.WxMpKefuMessage;
public class BaseBuilder {
protected String msgType;
protected String toUser;
@SuppressWarnings("unchecked")
public T toUser(String toUser) {
this.toUser = toUser;
return (T) this;
}
public WxMpKefuMessage build() {
WxMpKefuMessage m = new WxMpKefuMessage();
m.setMsgType(this.msgType);
m.setToUser(this.toUser);
return m;
}
}