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 void
deregister(RTMEventHandler<? extends Event> handler)
Removes a EventHandler.static String
detectEventSubType(com.google.gson.JsonObject json)
static String
detectEventType(com.google.gson.JsonObject json)
void
dispatch(String json)
Dispatches requests to appropriate event handlers.void
register(RTMEventHandler<? extends Event> handler)
Registers a new EventHandler.RTMMessageHandler
toMessageHandler()
Converts this dispatcher toRTMMessageHandler
.
-
-
-
Method Detail
-
register
public void register(RTMEventHandler<? extends Event> handler)
Description copied from interface:RTMEventsDispatcher
Registers a new EventHandler.- Specified by:
register
in interfaceRTMEventsDispatcher
-
deregister
public void deregister(RTMEventHandler<? extends Event> handler)
Description copied from interface:RTMEventsDispatcher
Removes a EventHandler.- Specified by:
deregister
in interfaceRTMEventsDispatcher
-
dispatch
public void dispatch(String json)
Description copied from interface:RTMEventsDispatcher
Dispatches requests to appropriate event handlers.- Specified by:
dispatch
in interfaceRTMEventsDispatcher
-
toMessageHandler
public RTMMessageHandler toMessageHandler()
Description copied from interface:RTMEventsDispatcher
Converts this dispatcher toRTMMessageHandler
.- Specified by:
toMessageHandler
in interfaceRTMEventsDispatcher
-
detectEventType
public static String detectEventType(com.google.gson.JsonObject json)
-
detectEventSubType
public static String detectEventSubType(com.google.gson.JsonObject json)
-
-