me.chanjar.weixin.mp.builder.outxml.ImageBuilder Maven / Gradle / Ivy
package me.chanjar.weixin.mp.builder.outxml;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutImageMessage;
/**
* 图片消息builder
*
* @author chanjarster
*/
public final class ImageBuilder extends BaseBuilder {
private String mediaId;
public ImageBuilder mediaId(String media_id) {
this.mediaId = media_id;
return this;
}
@Override
public WxMpXmlOutImageMessage build() {
WxMpXmlOutImageMessage m = new WxMpXmlOutImageMessage();
setCommon(m);
m.setMediaId(this.mediaId);
return m;
}
}