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

weixin.popular.bean.xmlmessage.XMLImageMessage 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.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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy