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

com.foxinmy.weixin4j.message.ImageMessage Maven / Gradle / Ivy

package com.foxinmy.weixin4j.message;

import javax.xml.bind.annotation.XmlElement;

import com.foxinmy.weixin4j.request.WeixinMessage;
import com.foxinmy.weixin4j.type.MessageType;

/**
 * 图片消息
 * 
 * @className ImageMessage
 * @author jinyu([email protected])
 * @date 2014年4月6日
 * @since JDK 1.6
 * @see 订阅号、服务号的图片消息
 * @see 企业号的图片消息
 */
public class ImageMessage extends WeixinMessage {

	private static final long serialVersionUID = 8430800898756567016L;

	public ImageMessage() {
		super(MessageType.image.name());
	}

	/**
	 * 图片链接
	 */
	@XmlElement(name = "PicUrl")
	private String picUrl;
	/**
	 * 图片消息媒体id,可以调用多媒体文件下载接口拉取数据。
	 */
	@XmlElement(name = "MediaId")
	private String mediaId;

	public String getPicUrl() {
		return picUrl;
	}

	public String getMediaId() {
		return mediaId;
	}

	@Override
	public String toString() {
		return "ImageMessage [picUrl=" + picUrl + ", mediaId=" + mediaId + ", "
				+ super.toString() + "]";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy