Package org.hamster.weixinmp.dao.entity.msg

Examples of org.hamster.weixinmp.dao.entity.msg.WxMsgVoiceEntity


   * @param ele
   * @return
   * @throws DocumentException
   */
  public static WxMsgVoiceEntity getMsgVoice(Element ele) throws DocumentException {
    WxMsgVoiceEntity result = msgEntityFactory(WxMsgVideoEntity.class, ele);
    WxItemVoiceEntity voice = new WxItemVoiceEntity();
    voice.setMediaId(strVal(ele, "MediaId"));
    voice.setFormat(strVal(ele, "Format"));
    if (!StringUtils.isEmpty(ele.elementText("Recognition"))) {
      voice.setRecognition(strVal(ele, "Recognition"));
    }
    result.setVoice(voice);
    return result;
  }
View Full Code Here

TOP

Related Classes of org.hamster.weixinmp.dao.entity.msg.WxMsgVoiceEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.