All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.binarywang.wx.miniapp.message.WxMaMessageHandler Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package cn.binarywang.wx.miniapp.message;

import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.WxMaMessage;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.session.WxSessionManager;

import java.util.Map;

/**
 * 处理小程序推送消息的处理器接口.
 *
 * @author Binary Wang
 */
public interface WxMaMessageHandler {
  /**
   * 处理消息.
   *
   * @param message        输入消息
   * @param context        上下文
   * @param service        服务类
   * @param sessionManager session管理器
   * @return 输出消息
   * @throws WxErrorException 异常
   */
  WxMaXmlOutMessage handle(WxMaMessage message, Map context,
                           WxMaService service, WxSessionManager sessionManager) throws WxErrorException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy