dev --- 3.8.0.A版本, openProject引用 ;
formao-live --- 3.7.0.B 版本, formallProject引用
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package me.chanjar.weixin.bean.custombuilder;
-
- import me.chanjar.weixin.api.WxConsts;
- import me.chanjar.weixin.bean.WxCustomMessage;
-
- /**
- * 获得消息builder
- * <pre>
- * 用法: WxCustomMessage m = WxCustomMessage.IMAGE().media_id(...).touser(...).build();
- * </pre>
- * @author chanjarster
- *
- */
- public final class ImageBuilder extends BaseBuilder<ImageBuilder> {
- private String media_id;
-
- public ImageBuilder() {
- this.msgtype = WxConsts.CUSTOM_MSG_IMAGE;
- }
-
- public ImageBuilder mediaId(String media_id) {
- this.media_id = media_id;
- return this;
- }
-
- public WxCustomMessage build() {
- WxCustomMessage m = super.build();
- m.setMedia_id(this.media_id);
- return m;
- }
- }
|