类 com.github.sd4324530.fastweixin.message.BaseMsg
的使用

使用 BaseMsg 的软件包
com.github.sd4324530.fastweixin.api   
com.github.sd4324530.fastweixin.handle   
com.github.sd4324530.fastweixin.message   
com.github.sd4324530.fastweixin.servlet   
 

com.github.sd4324530.fastweixin.apiBaseMsg 的使用
 

参数类型为 BaseMsgcom.github.sd4324530.fastweixin.api 中的方法
 ResultType MessageAPI.sendCustomMessage(String openid, BaseMsg message)
          已过时。 此方法已经不再建议使用,使用CustomAPI中方法代替
 ResultType CustomAPI.sendCustomMessage(String openid, BaseMsg message)
          发布客服消息
 GetSendMessageResponse MessageAPI.sendMessageToUser(BaseMsg message, boolean isToAll, Integer tagId)
          群发消息给用户。
 GetSendMessageResponse MessageAPI.sendMessageToUser(BaseMsg message, boolean isToAll, String groupId, String[] openIds)
          已过时。 微信不再建议使用群组概念,用标签代替
 

com.github.sd4324530.fastweixin.handleBaseMsg 的使用
 

返回 BaseMsgcom.github.sd4324530.fastweixin.handle 中的方法
 BaseMsg EventHandle.handle(E event)
          处理微信事件
 BaseMsg MessageHandle.handle(M message)
          处理微信消息
 

com.github.sd4324530.fastweixin.messageBaseMsg 的使用
 

com.github.sd4324530.fastweixin.messageBaseMsg 的子类
 class CustomMsg
           
 class ImageMsg
           
 class MpNewsMsg
          提交至微信的图文消息素材 ==================================================================== 上海聚攒软件开发有限公司 --------------------------------------------------------------------
 class MusicMsg
           
 class NewsMsg
           
 class TextMsg
           
 class VideoMsg
           
 class VoiceMsg
           
 

com.github.sd4324530.fastweixin.servletBaseMsg 的使用
 

返回 BaseMsgcom.github.sd4324530.fastweixin.servlet 中的方法
protected  BaseMsg WeixinSupport.callBackAllMessage(SendMessageEvent event)
          接收群发消息的回调方法
protected  BaseMsg WeixinSupport.hadnleShortVideoMsg(VideoReqMsg msg)
          处理小视频消息,有需要时子类重写
protected  BaseMsg WeixinSupport.handleDefaultEvent(BaseEvent event)
           
protected  BaseMsg WeixinSupport.handleDefaultMsg(BaseReqMsg msg)
           
protected  BaseMsg WeixinSupport.handleImageMsg(ImageReqMsg msg)
          处理图片消息,有需要时子类重写
protected  BaseMsg WeixinSupport.handleLinkMsg(LinkReqMsg msg)
          处理链接消息,有需要时子类重写
protected  BaseMsg WeixinSupport.handleLocationEvent(LocationEvent event)
          处理地理位置事件,有需要时子类重写
protected  BaseMsg WeixinSupport.handleLocationMsg(LocationReqMsg msg)
          处理地理位置消息,有需要时子类重写
protected  BaseMsg WeixinSupport.handleMenuClickEvent(MenuEvent event)
          处理菜单点击事件,有需要时子类重写
protected  BaseMsg WeixinSupport.handleMenuViewEvent(MenuEvent event)
          处理菜单跳转事件,有需要时子类重写
protected  BaseMsg WeixinSupport.handlePSendPicsInfoEvent(SendPicsInfoEvent event)
          处理菜单弹出相册事件,有需要时子类重写
protected  BaseMsg WeixinSupport.handleQrCodeEvent(QrCodeEvent event)
          处理扫描二维码事件,有需要时子类重写
protected  BaseMsg WeixinSupport.handleScanCodeEvent(ScanCodeEvent event)
          处理菜单扫描推事件,有需要时子类重写
protected  BaseMsg WeixinSupport.handleSubscribe(BaseEvent event)
          处理添加关注事件,有需要时子类重写
protected  BaseMsg WeixinSupport.handleTemplateMsgEvent(TemplateMsgEvent event)
          处理模版消息发送事件,有需要时子类重写
protected  BaseMsg WeixinSupport.handleTextMsg(TextReqMsg msg)
          处理文本消息,有需要时子类重写
protected  BaseMsg WeixinSupport.handleUnsubscribe(BaseEvent event)
          处理取消关注事件,有需要时子类重写
protected  BaseMsg WeixinSupport.handleVideoMsg(VideoReqMsg msg)
          处理视频消息,有需要时子类重写
protected  BaseMsg WeixinSupport.handleVoiceMsg(VoiceReqMsg msg)
          处理语音消息,有需要时子类重写
 



Copyright © 2017. All rights reserved.