Class NotifyEvent

java.lang.Object
com.mikuac.shiro.handler.event.NotifyEvent

@Component public class NotifyEvent extends Object
  • Field Details

    • handlers

      public final Map<String,BiConsumer<Bot,com.alibaba.fastjson2.JSONObject>> handlers
      存储通知事件处理器
  • Constructor Details

    • NotifyEvent

      public NotifyEvent()
  • Method Details

    • setUtils

      @Autowired public void setUtils(EventUtils utils)
    • setInjection

      @Autowired public void setInjection(InjectionHandler injection)
    • handler

      public void handler(Bot bot, com.alibaba.fastjson2.JSONObject resp)
      通知事件分发
      Parameters:
      bot - Bot
      resp - JSONObject
    • poke

      public void poke(Bot bot, com.alibaba.fastjson2.JSONObject resp)
      戳一戳事件
      Parameters:
      bot - Bot
      resp - JSONObject
    • luckyKing

      public void luckyKing(Bot bot, com.alibaba.fastjson2.JSONObject resp)
      抢红包运气王事件
      Parameters:
      bot - Bot
      resp - JSONObject
    • honor

      public void honor(Bot bot, com.alibaba.fastjson2.JSONObject resp)
      群荣誉变更事件
      Parameters:
      bot - Bot
      resp - JSONObject