當前位置: 首頁>>代碼示例>>Java>>正文


Java WxMsgRespType類代碼示例

本文整理匯總了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;
}
 
開發者ID:Charlemin,項目名稱:weixin-mp-java-master,代碼行數:18,代碼來源:WxStorageService.java

示例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;
}
 
開發者ID:Charlemin,項目名稱:weixin-mp-java-master,代碼行數:19,代碼來源:WxStorageService.java

示例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;
}
 
開發者ID:Charlemin,項目名稱:weixin-mp-java-master,代碼行數:18,代碼來源:WxStorageService.java

示例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;
}
 
開發者ID:Charlemin,項目名稱:weixin-mp-java-master,代碼行數:18,代碼來源:WxStorageService.java

示例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;
}
 
開發者ID:Charlemin,項目名稱:weixin-mp-java-master,代碼行數:11,代碼來源:WxMessageService.java


注:本文中的org.hamster.weixinmp.constant.WxMsgRespType類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。