me.chanjar.weixin.mp.builder.outxml.VoiceBuilder Maven / Gradle / Ivy
The newest version!
package me.chanjar.weixin.mp.builder.outxml;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutVoiceMessage;
/**
* 语音消息builder
*
* @author chanjarster
*/
public final class VoiceBuilder extends BaseBuilder {
private String mediaId;
public VoiceBuilder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
@Override
public WxMpXmlOutVoiceMessage build() {
WxMpXmlOutVoiceMessage m = new WxMpXmlOutVoiceMessage();
setCommon(m);
m.setMediaId(this.mediaId);
return m;
}
}