com.riversoft.weixin.common.message.xml.VideoXmlMessage Maven / Gradle / Ivy
The newest version!
package com.riversoft.weixin.common.message.xml;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.riversoft.weixin.common.message.MsgType;
import com.riversoft.weixin.common.message.Video;
import com.riversoft.weixin.common.message.XmlMessageHeader;
import java.util.Date;
/**
* Created by exizhai on 9/26/2015.
*/
@JacksonXmlRootElement(localName = "xml")
public class VideoXmlMessage extends XmlMessageHeader {
@JsonProperty("Video")
private Video video;
public VideoXmlMessage() {
this.msgType = MsgType.video;
this.setCreateTime(new Date());
}
public Video getVideo() {
return video;
}
public void setVideo(Video video) {
this.video = video;
}
public VideoXmlMessage video(Video video) {
this.video = video;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy