Examples of WxMsgImageEntity


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

    }
    return msgText;
  }

  public WxMsgImageEntity saveMsgImg(Element ele) throws DocumentException {
    WxMsgImageEntity msgImg = WxXmlUtil.getMsgImage(ele);
    if (msgImgDao != null) {
      msgImgDao.save(msgImg);
    } else {

    }
View Full Code Here

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

      + "<MediaId><![CDATA[media_id]]></MediaId>"
      + "<MsgId>1234567890123456</MsgId>" + "</xml>";
 
  @Test
  public void testGetMsgImg() throws DocumentException {
    WxMsgImageEntity msgImg = WxXmlUtil.getMsgImage(WxXmlUtil.toXML(MSG_IMG_XML));
    assertBaseFieldsWithMsgId(msgImg);
    //Assert.assertEquals("this is a url", msgImg.getImage().getPicUrl());
  }
View Full Code Here

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

   * @param xmlstr
   * @return
   * @throws DocumentException
   */
  public static WxMsgImageEntity getMsgImage(Element ele) throws DocumentException {
    WxMsgImageEntity result = msgEntityFactory(WxMsgImageEntity.class, ele);
    WxItemImageEntity image = new WxItemImageEntity();
    image.setMediaId(strVal(ele, "MediaId"));
    image.setPicUrl(strVal(ele, "PicUrl"));
    result.setImage(image);
    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.