Class CommandActivity<C extends CommandContext>
java.lang.Object
com.symphony.bdk.core.activity.AbstractActivity<V4MessageSent,C>
com.symphony.bdk.core.activity.command.CommandActivity<C>
- Direct Known Subclasses:
PatternCommandActivity
,SlashCommand
@API(status=STABLE)
public abstract class CommandActivity<C extends CommandContext>
extends AbstractActivity<V4MessageSent,C>
A form reply activity corresponds to any message send in a chat where the bot is part of.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
beforeMatcher
(C context) This callback can be used to prepareActivityContext
before actually processing theActivityMatcher.matches(ActivityContext)
method.protected void
bindToRealTimeEventsSource
(Consumer<RealTimeEventListener> realTimeEventsSource) Bind an Activity to its real-time event.Methods inherited from class com.symphony.bdk.core.activity.AbstractActivity
createContextInstance, getInfo, info, isAsynchronous, matcher, onActivity, processEvent
-
Constructor Details
-
CommandActivity
public CommandActivity()
-
-
Method Details
-
bindToRealTimeEventsSource
Bind an Activity to its real-time event.- Specified by:
bindToRealTimeEventsSource
in classAbstractActivity<V4MessageSent,
C extends CommandContext> - Parameters:
realTimeEventsSource
- The real-time events source, issued from theDatafeedLoop
.
-
beforeMatcher
This callback can be used to prepareActivityContext
before actually processing theActivityMatcher.matches(ActivityContext)
method.- Overrides:
beforeMatcher
in classAbstractActivity<V4MessageSent,
C extends CommandContext>
-