me.chanjar.weixin.cp.bean.outxmlbuilder.VoiceBuilder Maven / Gradle / Ivy
package me.chanjar.weixin.cp.bean.outxmlbuilder;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutVoiceMessage;
/**
* 语音消息builder
*
* @author Daniel Qian
*/
public final class VoiceBuilder extends BaseBuilder {
private String mediaId;
/**
* Media id voice builder.
*
* @param mediaId the media id
* @return the voice builder
*/
public VoiceBuilder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
@Override
public WxCpXmlOutVoiceMessage build() {
WxCpXmlOutVoiceMessage m = new WxCpXmlOutVoiceMessage();
setCommon(m);
m.setMediaId(this.mediaId);
return m;
}
}