weixin.popular.bean.xmlmessage.XMLTextMessage 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.TextMessage;
public class XMLTextMessage extends XMLMessage {
private static final long serialVersionUID = 2457998440521370652L;
private String content;
public XMLTextMessage(String toUserName, String fromUserName, String content) {
super(toUserName, fromUserName, "text");
this.content = content;
}
@Override
public String subXML() {
return " ";
}
@Override
public Message convert() {
return new TextMessage(toUserName, content);
}
}