me.chanjar.weixin.mp.builder.kefu.WxCardBuilder Maven / Gradle / Ivy
package me.chanjar.weixin.mp.builder.kefu;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.mp.bean.kefu.WxMpKefuMessage;
/**
* 卡券消息builder
*
* 用法: WxMpKefuMessage m = WxMpKefuMessage.WXCARD().cardId(...).toUser(...).build();
*
*
* @author mgcnrx11
*/
public final class WxCardBuilder extends BaseBuilder {
private String cardId;
public WxCardBuilder() {
this.msgType = WxConsts.KefuMsgType.WXCARD;
}
public WxCardBuilder cardId(String cardId) {
this.cardId = cardId;
return this;
}
@Override
public WxMpKefuMessage build() {
WxMpKefuMessage m = super.build();
m.setCardId(this.cardId);
return m;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy