Package org.hamster.weixinmp.dao.entity.item

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


      thumbEntity.setMediaId(result.getMedia_id());
      thumbEntity.setCreatedDate(new Date(result.getCreated_at() * 1000));
      resultEntity = thumbEntity;
      break;
    case VIDEO:
      WxItemVideoEntity videoEntity = new WxItemVideoEntity();
      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());
View Full Code Here


   * @return
   * @throws DocumentException
   */
  public static WxMsgVideoEntity getMsgVideo(Element ele) throws DocumentException {
    WxMsgVideoEntity result = msgEntityFactory(WxMsgVideoEntity.class, ele);
    WxItemVideoEntity video = new WxItemVideoEntity();
    video.setMediaId(strVal(ele, "MediaId"));
    WxItemThumbEntity thumb = new WxItemThumbEntity();
    thumb.setMediaId(strVal(ele, "ThumbMediaId"));
    video.setThumb(thumb);
    result.setVideo(video);
    return result;
  }
View Full Code Here

TOP

Related Classes of org.hamster.weixinmp.dao.entity.item.WxItemVideoEntity

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.