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

com.foxinmy.weixin4j.message.VideoMessage 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 VideoMessage
 * @author jinyu([email protected])
 * @date 2014年4月6日
 * @since JDK 1.6
 * @see 订阅号、服务号的视频消息
 * @see 企业号的视频消息
 */
public class VideoMessage extends WeixinMessage {

	private static final long serialVersionUID = -1013075358679078381L;

	public VideoMessage() {
		super(MessageType.video.name());
	}

	/**
	 * 视频消息媒体id,可以调用多媒体文件下载接口拉取数据。
	 */
	@XmlElement(name = "MediaId")
	private String mediaId;
	/**
	 * 视频消息缩略图的媒体id,可以调用多媒体文件下载接口拉取数据。
	 */
	@XmlElement(name = "ThumbMediaId")
	private String thumbMediaId;

	public String getMediaId() {
		return mediaId;
	}

	public String getThumbMediaId() {
		return thumbMediaId;
	}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy