me.chanjar.weixin.mp.bean.message.WxMpXmlOutImageMessage Java Examples
The following examples show how to use
me.chanjar.weixin.mp.bean.message.WxMpXmlOutImageMessage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DemoImageHandler.java From weixin-java-tools with Apache License 2.0 | 6 votes |
@Override public WxMpXmlOutMessage handle(WxMpXmlMessage wxMessage, Map<String, Object> context, WxMpService wxMpService, WxSessionManager sessionManager) { try { WxMediaUploadResult wxMediaUploadResult = wxMpService.getMaterialService() .mediaUpload(WxConsts.MediaFileType.IMAGE, TestConstants.FILE_JPG, ClassLoader.getSystemResourceAsStream("mm.jpeg")); WxMpXmlOutImageMessage m = WxMpXmlOutMessage .IMAGE() .mediaId(wxMediaUploadResult.getMediaId()) .fromUser(wxMessage.getToUser()) .toUser(wxMessage.getFromUser()) .build(); return m; } catch (WxErrorException e) { e.printStackTrace(); } return null; }
Example #2
Source File: ImageBuilder.java From mall4j with GNU Affero General Public License v3.0 | 5 votes |
@Override public WxMpXmlOutMessage build(String content, WxMpXmlMessage wxMessage, WxMpService service) { WxMpXmlOutImageMessage m = WxMpXmlOutMessage.IMAGE().mediaId(content) .fromUser(wxMessage.getToUser()).toUser(wxMessage.getFromUser()) .build(); return m; }
Example #3
Source File: ImageBuilder.java From yshopmall with Apache License 2.0 | 5 votes |
@Override public WxMpXmlOutMessage build(String content, WxMpXmlMessage wxMessage, WxMpService service) { WxMpXmlOutImageMessage m = WxMpXmlOutMessage.IMAGE().mediaId(content) .fromUser(wxMessage.getToUser()).toUser(wxMessage.getFromUser()) .build(); return m; }
Example #4
Source File: ImageBuilder.java From weixin-java-tools with Apache License 2.0 | 5 votes |
@Override public WxMpXmlOutImageMessage build() { WxMpXmlOutImageMessage m = new WxMpXmlOutImageMessage(); setCommon(m); m.setMediaId(this.mediaId); return m; }
Example #5
Source File: ImageBuilder.java From black-shop with Apache License 2.0 | 5 votes |
@Override public WxMpXmlOutMessage build(String content, WxMpXmlMessage wxMessage, WxMpService service) { WxMpXmlOutImageMessage m = WxMpXmlOutMessage.IMAGE().mediaId(content).fromUser(wxMessage.getToUser()) .toUser(wxMessage.getFromUser()).build(); return m; }
Example #6
Source File: ImageBuilder.java From fw-cloud-framework with MIT License | 5 votes |
@Override public WxMpXmlOutMessage build(String content, WxMpXmlMessage wxMessage, WxMpService service) { WxMpXmlOutImageMessage m = WxMpXmlOutMessage.IMAGE().mediaId(content).fromUser( wxMessage.getToUser()).toUser(wxMessage.getFromUser()).build(); return m; }
Example #7
Source File: ImageBuilder.java From sdb-mall with Apache License 2.0 | 5 votes |
@Override public WxMpXmlOutMessage build(String content, WxMpXmlMessage wxMessage, WxMpService service) { WxMpXmlOutImageMessage m = WxMpXmlOutMessage.IMAGE().mediaId(content) .fromUser(wxMessage.getToUser()).toUser(wxMessage.getFromUser()) .build(); return m; }