Examples of WxRespTextEntity


Examples of org.hamster.weixinmp.dao.entity.resp.WxRespTextEntity

    }
    return null;
  }
 
  protected WxRespTextEntity defaultResult(String fromUserName, String toUserName) {
    WxRespTextEntity result = new WxRespTextEntity();
    result.setContent("您好,您的消息已收到.");
    result.setCreatedDate(new Date());
    result.setCreateTime(new Date().getTime() / 1000);
    result.setFromUserName(fromUserName);
    result.setMsgType(WxMsgRespType.TEXT);
    result.setToUserName(toUserName);
    return result;
  }
View Full Code Here

Examples of org.hamster.weixinmp.dao.entity.resp.WxRespTextEntity

    return msgEvent;
  }

  public WxRespTextEntity createRespText(String content, String fromUserName,
      String toUserName, Integer funcFlag) {
    WxRespTextEntity respText = new WxRespTextEntity();
    respText.setContent(content);
    respText.setCreatedDate(new Date());
    respText.setCreateTime(WxUtil.currentTimeInSec());
    respText.setFromUserName(fromUserName);
    respText.setToUserName(toUserName);
    respText.setFuncFlag(funcFlag);
    respText.setMsgType(WxMsgRespType.TEXT);
    if (respTextDao != null) {
      respTextDao.save(respText);
    } else {

    }
View Full Code Here

Examples of org.hamster.weixinmp.dao.entity.resp.WxRespTextEntity

  // ///////////////
  // common parts //
  // ///////////////
  public WxBaseRespEntity handleMessage(WxBaseMsgEntity msg) {
    WxRespTextEntity respText = createRespText(
        "Only test message, please ignore this.", msg.getToUserName(),
        msg.getFromUserName(), 1);
    return respText;
  }
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.