Examples of WxItemVoiceEntity


Examples of org.hamster.weixinmp.dao.entity.item.WxItemVoiceEntity

      videoEntity.setMediaId(result.getMedia_id());
      videoEntity.setCreatedDate(new Date(result.getCreated_at() * 1000));
      resultEntity = videoEntity;
      break;
    case VOICE:
      WxItemVoiceEntity voiceEntity = new WxItemVoiceEntity();
      voiceEntity.setMediaId(result.getMedia_id());
      voiceEntity.setCreatedDate(new Date(result.getCreated_at() * 1000));
      resultEntity = voiceEntity;
      break;
    case MUSIC:
    case DEFAULT:
    case PIC_DESC:
View Full Code Here

Examples of org.hamster.weixinmp.dao.entity.item.WxItemVoiceEntity

   * @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
Copyright © 2018 www.massapi.com. 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.