package com.smtaiserver.smtaiserver.vo;
|
|
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
import lombok.Setter;
|
|
@XmlRootElement(name = "xml")
|
public class WechatMessageVO {
|
/** 接收方帐号(收到的OpenID) */
|
@XmlElement(name = "ToUserName")
|
private String toUserName;
|
|
/** 开发者微信号 */
|
@XmlElement(name = "FromUserName")
|
private String fromUserName;
|
|
/** 消息创建时间 (整型) */
|
@XmlElement(name = "CreateTime")
|
private long createTime;
|
|
/** 消息类型 */
|
@XmlElement(name = "MsgType")
|
private String msgType;
|
|
/** 消息类型 */
|
@XmlElement(name = "Content")
|
private String content;
|
|
/** 图片消息 */
|
@XmlElement(name = "Image")
|
private MediaVo image;
|
|
/** 音频 */
|
@XmlElement(name = "Voice")
|
private MediaVo voice;
|
|
/** 视频 */
|
@XmlElement(name = "Video")
|
private MediaVo video;
|
|
/** 音乐 */
|
@XmlElement(name = "Music")
|
private MediaVo music;
|
|
/** 图文 */
|
@XmlElement(name = "Articles")
|
private MediaVo articles;
|
|
public String getToUserName() {
|
return toUserName;
|
}
|
|
public void setToUserName(String toUserName) {
|
this.toUserName = toUserName;
|
}
|
|
public String getFromUserName() {
|
return fromUserName;
|
}
|
|
public void setFromUserName(String fromUserName) {
|
this.fromUserName = fromUserName;
|
}
|
|
public long getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(long createTime) {
|
this.createTime = createTime;
|
}
|
|
public String getMsgType() {
|
return msgType;
|
}
|
|
public void setMsgType(String msgType) {
|
this.msgType = msgType;
|
}
|
|
public String getContent() {
|
return content;
|
}
|
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
public MediaVo getImage() {
|
return image;
|
}
|
|
public void setImage(MediaVo image) {
|
this.image = image;
|
}
|
|
public MediaVo getVoice() {
|
return voice;
|
}
|
|
public void setVoice(MediaVo voice) {
|
this.voice = voice;
|
}
|
|
public MediaVo getVideo() {
|
return video;
|
}
|
|
public void setVideo(MediaVo video) {
|
this.video = video;
|
}
|
|
public MediaVo getMusic() {
|
return music;
|
}
|
|
public void setMusic(MediaVo music) {
|
this.music = music;
|
}
|
|
public MediaVo getArticles() {
|
return articles;
|
}
|
|
public void setArticles(MediaVo articles) {
|
this.articles = articles;
|
}
|
}
|