me.chanjar.weixin.mp.bean.outxmlbuilder.TransferCustomerServiceBuilder Maven / Gradle / Ivy
package me.chanjar.weixin.mp.bean.outxmlbuilder;
import me.chanjar.weixin.common.util.StringUtils;
import me.chanjar.weixin.mp.bean.WxMpXmlOutTransferCustomerServiceMessage;
/**
* 客服消息builder
*
* 用法: WxMpCustomMessage m = WxMpXmlOutMessage.TRANSFER_CUSTOMER_SERVICE().content(...).toUser(...).build();
*
*
* @author chanjarster
*/
public final class TransferCustomerServiceBuilder extends BaseBuilder {
private String kfAccount;
public TransferCustomerServiceBuilder kfAccount(String kf) {
this.kfAccount = kf;
return this;
}
@Override
public WxMpXmlOutTransferCustomerServiceMessage build() {
WxMpXmlOutTransferCustomerServiceMessage m = new WxMpXmlOutTransferCustomerServiceMessage();
setCommon(m);
if(StringUtils.isNotBlank(this.kfAccount)){
WxMpXmlOutTransferCustomerServiceMessage.TransInfo transInfo = new WxMpXmlOutTransferCustomerServiceMessage.TransInfo();
transInfo.setKfAccount(this.kfAccount);
m.setTransInfo(transInfo);
}
return m;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy