com.tmsps.ne4weixin.bean.message.custom.VideoMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ne4weixin Show documentation
Show all versions of ne4weixin Show documentation
Ne4WeiXin For Spring is good :)
package com.tmsps.ne4weixin.bean.message.custom;
import com.tmsps.ne4weixin.bean.message.custom.vo.Video;
import com.tmsps.ne4weixin.config.enumeration.MsgTypeEnum;
/**
* @Title: VideoMessage.java
* @Package: com.tmsps.ne4weixin.bean.custom
* @Description: 客服消息-发送视频消息
* @author: hanjiefei
* @date: 2019-10-18
* @version V1.0
* @Copyright: 2019
*/
public class VideoMessage extends BaseMessage {
/**
* 视频消息内容
*/
private Video video;
public VideoMessage(String touser) {
super(touser, MsgTypeEnum.VIDEO);
}
public VideoMessage(String touser, String mediaId) {
super(touser, MsgTypeEnum.VIDEO);
this.video = new Video(mediaId);
}
public VideoMessage(String touser, String mediaId, String thumb_media_id) {
super(touser, MsgTypeEnum.VIDEO);
this.video = new Video(mediaId, thumb_media_id);
}
public VideoMessage(String touser,Video video) {
super(touser, MsgTypeEnum.VIDEO);
this.video = video;
}
public Video getVideo() {
return video;
}
public void setVideo(Video video) {
this.video = video;
}
}