All Downloads are FREE. Search and download functionalities are using the official Maven repository.

weixin.popular.bean.xmlmessage.XMLTextMessage Maven / Gradle / Ivy

Go to download

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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy