dev --- 3.8.0.A版本, openProject引用 ; formao-live --- 3.7.0.B 版本, formallProject引用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WxXmlOutVoiceMessage.java 832 B

1234567891011121314151617181920212223242526272829303132
  1. package chanjarster.weixin.bean;
  2. import javax.xml.bind.annotation.XmlAccessType;
  3. import javax.xml.bind.annotation.XmlAccessorType;
  4. import javax.xml.bind.annotation.XmlElement;
  5. import javax.xml.bind.annotation.XmlRootElement;
  6. import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
  7. import chanjarster.weixin.api.WxConsts;
  8. import chanjarster.weixin.util.xml.MediaIdMarshaller;
  9. @XmlRootElement(name = "xml")
  10. @XmlAccessorType(XmlAccessType.FIELD)
  11. public class WxXmlOutVoiceMessage extends WxXmlOutMessage {
  12. @XmlElement(name="Voice")
  13. @XmlJavaTypeAdapter(MediaIdMarshaller.class)
  14. private String MediaId;
  15. public WxXmlOutVoiceMessage() {
  16. this.MsgType = WxConsts.XML_MSG_VOICE;
  17. }
  18. public String getMediaId() {
  19. return MediaId;
  20. }
  21. public void setMediaId(String mediaId) {
  22. MediaId = mediaId;
  23. }
  24. }