weixin.popular.bean.xmlmessage.XMLImageMessage 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.ImageMessage;
import weixin.popular.bean.message.message.Message;
public class XMLImageMessage extends XMLMessage{
private static final long serialVersionUID = 5972200803798750987L;
private String mediaId;
public XMLImageMessage(String toUserName, String fromUserName, String mediaId) {
super(toUserName, fromUserName, "image");
this.mediaId = mediaId;
}
@Override
public String subXML() {
return " ";
}
@Override
public Message convert() {
return new ImageMessage(toUserName, mediaId);
}
}