weixin.popular.bean.xmlmessage.XMLVideoMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weixin-popular Show documentation
Show all versions of weixin-popular Show documentation
The weixin-popular is a JAVA SDK for weixin. Weixin web url is https://mp.weixin.qq.com.
The newest version!
package weixin.popular.bean.xmlmessage;
import weixin.popular.bean.message.message.Message;
import weixin.popular.bean.message.message.VideoMessage;
import weixin.popular.bean.message.message.VideoMessage.Video;
public class XMLVideoMessage extends XMLMessage {
private static final long serialVersionUID = 3858730703846989272L;
private String mediaId;
private String title;
private String description;
public XMLVideoMessage(String toUserName, String fromUserName, String mediaId, String title, String description) {
super(toUserName, fromUserName, "video");
this.mediaId = mediaId;
this.title = title;
this.description = description;
}
@Override
public String subXML() {
return "";
}
@Override
public Message convert() {
Video video = new Video(mediaId, title, description);
return new VideoMessage(toUserName, video);
}
}