Package org.hamster.weixinmp.dao.entity.resp

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


    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

  // ///////////////
  // 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

Related Classes of org.hamster.weixinmp.dao.entity.resp.WxRespTextEntity

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.