com.github.sd4324530.fastweixin.handle.EventHandle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastweixin Show documentation
Show all versions of fastweixin Show documentation
quickly department weixin server
package com.github.sd4324530.fastweixin.handle;
import com.github.sd4324530.fastweixin.message.BaseMsg;
import com.github.sd4324530.fastweixin.message.req.BaseEvent;
/**
* 微信事件处理器接口
*
* @author peiyu
* @since 1.1
*/
public interface EventHandle {
/**
* 处理微信事件
*
* @param event 微信事件
* @return 回复用户的消息
*/
BaseMsg handle(E event);
/**
* 在处理之前,判断本事件是否符合处理的条件
*
* @param event 事件
* @return 是否需要处理
*/
boolean beforeHandle(E event);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy