Package com.slack.api.rtm
Class RTMEventsDispatcherImpl
- java.lang.Object
-
- com.slack.api.rtm.RTMEventsDispatcherImpl
-
- All Implemented Interfaces:
RTMEventsDispatcher
public class RTMEventsDispatcherImpl extends Object implements RTMEventsDispatcher
-
-
Constructor Summary
Constructors Constructor Description RTMEventsDispatcherImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidderegister(RTMEventHandler<? extends Event> handler)Removes a EventHandler.static StringdetectEventSubType(com.google.gson.JsonObject json)static StringdetectEventType(com.google.gson.JsonObject json)voiddispatch(String json)Dispatches requests to appropriate event handlers.voidregister(RTMEventHandler<? extends Event> handler)Registers a new EventHandler.RTMMessageHandlertoMessageHandler()Converts this dispatcher toRTMMessageHandler.
-
-
-
Method Detail
-
register
public void register(RTMEventHandler<? extends Event> handler)
Description copied from interface:RTMEventsDispatcherRegisters a new EventHandler.- Specified by:
registerin interfaceRTMEventsDispatcher
-
deregister
public void deregister(RTMEventHandler<? extends Event> handler)
Description copied from interface:RTMEventsDispatcherRemoves a EventHandler.- Specified by:
deregisterin interfaceRTMEventsDispatcher
-
dispatch
public void dispatch(String json)
Description copied from interface:RTMEventsDispatcherDispatches requests to appropriate event handlers.- Specified by:
dispatchin interfaceRTMEventsDispatcher
-
toMessageHandler
public RTMMessageHandler toMessageHandler()
Description copied from interface:RTMEventsDispatcherConverts this dispatcher toRTMMessageHandler.- Specified by:
toMessageHandlerin interfaceRTMEventsDispatcher
-
detectEventType
public static String detectEventType(com.google.gson.JsonObject json)
-
detectEventSubType
public static String detectEventSubType(com.google.gson.JsonObject json)
-
-