me.chanjar.weixin.mp.builder.outxml.TransferCustomerServiceBuilder Maven / Gradle / Ivy
package me.chanjar.weixin.mp.builder.outxml;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutTransferKefuMessage;
import org.apache.commons.lang3.StringUtils;
/**
* 客服消息builder
*
* 用法: WxMpKefuMessage 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 WxMpXmlOutTransferKefuMessage build() {
WxMpXmlOutTransferKefuMessage m = new WxMpXmlOutTransferKefuMessage();
setCommon(m);
if(StringUtils.isNotBlank(this.kfAccount)){
WxMpXmlOutTransferKefuMessage.TransInfo transInfo = new WxMpXmlOutTransferKefuMessage.TransInfo();
transInfo.setKfAccount(this.kfAccount);
m.setTransInfo(transInfo);
}
return m;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy