本文整理汇总了Java中org.hamster.weixinmp.constant.WxMsgRespType类的典型用法代码示例。如果您正苦于以下问题:Java WxMsgRespType类的具体用法?Java WxMsgRespType怎么用?Java WxMsgRespType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WxMsgRespType类属于org.hamster.weixinmp.constant包,在下文中一共展示了WxMsgRespType类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createRespText
import org.hamster.weixinmp.constant.WxMsgRespType; //导入依赖的package包/类
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 {
}
return respText;
}
示例2: createRespPicDesc
import org.hamster.weixinmp.constant.WxMsgRespType; //导入依赖的package包/类
public WxRespPicDescEntity createRespPicDesc(
List<WxItemPicDescEntity> articles, String fromUserName,
String toUserName, Integer funcFlag) {
WxRespPicDescEntity respPicDesc = new WxRespPicDescEntity();
respPicDesc.setCreatedDate(new Date());
respPicDesc.setCreateTime(WxUtil.currentTimeInSec());
respPicDesc.setFromUserName(fromUserName);
respPicDesc.setToUserName(toUserName);
respPicDesc.setFuncFlag(funcFlag);
respPicDesc.setMsgType(WxMsgRespType.NEWS);
respPicDesc.setArticles(articles);
if (respPicDescDao != null) {
respPicDescDao.save(respPicDesc);
} else {
}
return respPicDesc;
}
示例3: createRespPicDesc2
import org.hamster.weixinmp.constant.WxMsgRespType; //导入依赖的package包/类
public WxRespPicDescEntity createRespPicDesc2(List<Long> articleIds,
String fromUserName, String toUserName, Integer funcFlag) {
WxRespPicDescEntity respPicDesc = new WxRespPicDescEntity();
respPicDesc.setCreatedDate(new Date());
respPicDesc.setCreateTime(WxUtil.currentTimeInSec());
respPicDesc.setFromUserName(fromUserName);
respPicDesc.setToUserName(toUserName);
respPicDesc.setFuncFlag(funcFlag);
respPicDesc.setMsgType(WxMsgRespType.NEWS);
respPicDesc.setArticles(wxItemPicDescDao.findByIdIn(articleIds));
if (respPicDescDao != null) {
respPicDescDao.save(respPicDesc);
} else {
}
return respPicDesc;
}
示例4: createRespMusic
import org.hamster.weixinmp.constant.WxMsgRespType; //导入依赖的package包/类
public WxRespMusicEntity createRespMusic(String fromUserName,
String toUserName, Integer funcFlag, WxItemMusicEntity itemMusic) {
WxRespMusicEntity respMusic = new WxRespMusicEntity();
respMusic.setCreatedDate(new Date());
respMusic.setCreateTime(WxUtil.currentTimeInSec());
respMusic.setFromUserName(fromUserName);
respMusic.setToUserName(toUserName);
respMusic.setFuncFlag(funcFlag);
respMusic.setMsgType(WxMsgRespType.MUSIC);
// respMusic.setMusic(itemMusic);
if (respMusicDao != null) {
respMusicDao.save(respMusic);
} else {
}
return respMusic;
}
示例5: defaultResult
import org.hamster.weixinmp.constant.WxMsgRespType; //导入依赖的package包/类
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;
}