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

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

package weixin.popular.bean.xmlmessage;

import weixin.popular.bean.message.message.Message;
import weixin.popular.bean.message.message.VoiceMessage;

public class XMLVoiceMessage extends XMLMessage {

	private static final long serialVersionUID = 2372031664279510333L;

	private String mediaId;

	public XMLVoiceMessage(String toUserName, String fromUserName, String mediaId) {
		super(toUserName, fromUserName, "voice");
		this.mediaId = mediaId;
	}

	@Override
	public String subXML() {
		return "";
	}

	@Override
	public Message convert() {
		return new VoiceMessage(toUserName, mediaId);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy