me.chanjar.weixin.bean.WxXmlOutVoiceMessage Maven / Gradle / Ivy
The newest version!
package me.chanjar.weixin.bean;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import me.chanjar.weixin.api.WxConsts;
import me.chanjar.weixin.util.xml.MediaIdMarshaller;
@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class WxXmlOutVoiceMessage extends WxXmlOutMessage {
@XmlElement(name="Voice")
@XmlJavaTypeAdapter(MediaIdMarshaller.class)
private String MediaId;
public WxXmlOutVoiceMessage() {
this.MsgType = WxConsts.XML_MSG_VOICE;
}
public String getMediaId() {
return MediaId;
}
public void setMediaId(String mediaId) {
MediaId = mediaId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy