me.chanjar.weixin.bean.custombuilder.BaseBuilder Maven / Gradle / Ivy
package me.chanjar.weixin.bean.custombuilder;
import me.chanjar.weixin.bean.WxCustomMessage;
public class BaseBuilder {
protected String msgtype;
protected String toUser;
public T toUser(String toUser) {
this.toUser = toUser;
return (T) this;
}
public WxCustomMessage build() {
WxCustomMessage m = new WxCustomMessage();
m.setMsgtype(this.msgtype);
m.setTouser(this.toUser);
return m;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy