Package com.slack.api.rtm
Class RTMEventHandler<E extends Event>
- java.lang.Object
-
- com.slack.api.rtm.RTMEventHandler<E>
-
-
Constructor Summary
Constructors Constructor Description RTMEventHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
acceptUntypedObject(Object event)
Used only internally.Class<E>
getEventClass()
Returns the Class object of the Event implementation.String
getEventSubType()
Returns the subtype value of the event (e.g., MessageEvent.TYPE_NAME)String
getEventType()
Returns the type value of the event (e.g., MessageEvent.TYPE_NAME)abstract void
handle(E event)
Implement your logic in this method.
-
-
-
Method Detail
-
getEventType
public String getEventType()
Returns the type value of the event (e.g., MessageEvent.TYPE_NAME)
-
getEventSubType
public String getEventSubType()
Returns the subtype value of the event (e.g., MessageEvent.TYPE_NAME)
-
handle
public abstract void handle(E event)
Implement your logic in this method.- Parameters:
event
- event data
-
acceptUntypedObject
public void acceptUntypedObject(Object event)
Used only internally.- Parameters:
event
- event data
-
-