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

com.jeecg.dingtalk.api.message.vo.ImageMessage Maven / Gradle / Ivy

Go to download

JEEWX-API(微信极速SDK、同时支持微信公众号\企业微信\支付窗\小程序\微博).

The newest version!
package com.jeecg.dingtalk.api.message.vo;

import com.alibaba.fastjson.JSONObject;
import com.jeecg.dingtalk.api.core.util.MessageType;

/**
 * 钉钉图片消息
 *
 * @author sunjianlei
 */
public class ImageMessage extends SuperMessage {

    private JSONObject image = new JSONObject();

    /**
     * 钉钉图片消息
     *
     * @param media_id 媒体文件 media_id。可以通过上传媒体文件接口获取。建议宽600像素 x 400像素,宽高比3 : 2。
     */
    public ImageMessage(String media_id) {
        super(MessageType.IMAGE);
        this.image.put("media_id", media_id);
    }

    public JSONObject getImage() {
        return this.image;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy