Package com.slack.api.rtm
Class RTMEventHandler<E extends Event>
java.lang.Object
com.slack.api.rtm.RTMEventHandler<E>
- Type Parameters:
E- The type of an events API Payload
Real Time Messaging API event handler base class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptUntypedObject(Object event) Used only internally.Returns the Class object of the Event implementation.Returns the subtype value of the event (e.g., MessageEvent.TYPE_NAME)Returns the type value of the event (e.g., MessageEvent.TYPE_NAME)abstract voidImplement your logic in this method.
-
Constructor Details
-
RTMEventHandler
public RTMEventHandler()
-
-
Method Details
-
getEventType
Returns the type value of the event (e.g., MessageEvent.TYPE_NAME) -
getEventSubType
Returns the subtype value of the event (e.g., MessageEvent.TYPE_NAME) -
getEventClass
Returns the Class object of the Event implementation. -
handle
Implement your logic in this method.- Parameters:
event- event data
-
acceptUntypedObject
Used only internally.- Parameters:
event- event data
-