All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.chanjar.weixin.bean.custombuilder.ImageBuilder Maven / Gradle / Ivy

package me.chanjar.weixin.bean.custombuilder;

import me.chanjar.weixin.api.WxConsts;
import me.chanjar.weixin.bean.WxCustomMessage;

/**
 * 获得消息builder
 * 
 * 用法: WxCustomMessage m = WxCustomMessage.IMAGE().media_id(...).touser(...).build();
 * 
* @author chanjarster * */ public final class ImageBuilder extends BaseBuilder { 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; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy