Class EventHandler<E extends EventsApiPayload<?>>

    • Constructor Detail

      • EventHandler

        public EventHandler()
    • Method Detail

      • getEventType

        public abstract String getEventType()
        Returns the type value of the event (e.g., MessageEvent.TYPE_NAME)
      • getEventSubtype

        public String getEventSubtype()
        Returns the subtype of the event (e.g., "message_changed" for type: message)
      • getEventPayloadClass

        public Class<E> getEventPayloadClass()
        Returns the Class object of the EventApiPayload implementation.
      • handle

        public abstract void handle​(E payload)
        Implement your logic in this method.
        Parameters:
        payload - Events API payload
      • acceptUntypedObject

        public void acceptUntypedObject​(Object payload)
        Used only internally.
        Parameters:
        payload - Events API payload