本文整理匯總了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;
}