Examples of WxMsgLocEntity


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

    }
    return msgLink;
  }

  public WxMsgLocEntity saveMsgLoc(Element ele) throws DocumentException {
    WxMsgLocEntity msgLoc = WxXmlUtil.getMsgLoc(ele);
    if (msgLocDao != null) {
      msgLocDao.save(msgLoc);
    } else {

    }
View Full Code Here

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

      + "<Label><![CDATA[位置信息]]></Label>"
      + "<MsgId>1234567890123456</MsgId>" + "</xml> ";
 
  @Test
  public void testGetMsgLoc() throws DocumentException {
    WxMsgLocEntity msgLoc = WxXmlUtil.getMsgLoc(WxXmlUtil.toXML(MSG_LOC_XML));
    assertBaseFieldsWithMsgId(msgLoc);
    Assert.assertEquals(Double.valueOf(23.134521d), msgLoc.getLocationX());
    Assert.assertEquals(Double.valueOf(113.358803d), msgLoc.getLocationY());
    Assert.assertEquals(Double.valueOf(20), msgLoc.getScale());
    Assert.assertEquals("位置信息", msgLoc.getLabel());
  }
View Full Code Here

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

   * @param xmlstr
   * @return
   * @throws DocumentException
   */
  public static WxMsgLocEntity getMsgLoc(Element ele) throws DocumentException {
    WxMsgLocEntity result = msgEntityFactory(WxMsgLocEntity.class, ele);
    result.setLabel(strVal(ele, "Label"));
    result.setLocationX(doubleVal(ele, "Location_X"));
    result.setLocationY(doubleVal(ele, "Location_Y"));
    result.setScale(doubleVal(ele, "Scale"));
    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.