Examples of WxMsgEventEntity


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

    }
    return msgLoc;
  }

  public WxMsgEventEntity saveMsgEvent(Element ele) throws DocumentException {
    WxMsgEventEntity msgEvent = WxXmlUtil.getMsgEvent(ele);
    if (msgEventDao != null) {
      msgEventDao.save(msgEvent);
    } else {

    }
View Full Code Here

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

      + "<Event><![CDATA[EVENT]]></Event>"
      + "<EventKey><![CDATA[EVENTKEY]]></EventKey>" + "</xml>";
 
  @Test
  public void testGetMsgEvent() throws DocumentException {
    WxMsgEventEntity msgEvent = WxXmlUtil.getMsgEvent(WxXmlUtil.toXML(MSG_EVENT_XML));
    assertBaseFields(msgEvent);
    Assert.assertEquals("EVENT", msgEvent.getEvent());
    Assert.assertEquals("EVENTKEY", msgEvent.getEventKey());
  }
View Full Code Here

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

   * @param xmlstr
   * @return
   * @throws DocumentException
   */
  public static WxMsgEventEntity getMsgEvent(Element ele) throws DocumentException {
    WxMsgEventEntity result = msgEntityFactory(WxMsgEventEntity.class, ele);
    result.setEvent(strVal(ele, "Event"));
    if (ele.elementText("EventKey") != null) {
      result.setEventKey(strVal(ele, "EventKey"));
    }
    if (ele.elementText("Ticket") != null) {
      result.setEventKey(strVal(ele, "Ticket"));
    }
    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.