Class HelpCommand
java.lang.Object
com.symphony.bdk.core.activity.AbstractActivity<V4MessageSent,C>
com.symphony.bdk.core.activity.command.CommandActivity<CommandContext>
com.symphony.bdk.core.activity.command.SlashCommand
com.symphony.bdk.core.activity.command.HelpCommand
A help command listing all the commands that can be performed by an end-user through the chat.
-
Constructor Summary
ConstructorDescriptionHelpCommand
(ActivityRegistry activityRegistry, MessageService messageService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
protected ActivityInfo
info()
Build activity info.void
onActivity
(CommandContext context) Contain the activity business logic.Methods inherited from class com.symphony.bdk.core.activity.command.SlashCommand
createContextInstance, isAsynchronous, matcher, slash, slash, slash, slash, slash
Methods inherited from class com.symphony.bdk.core.activity.command.CommandActivity
beforeMatcher, bindToRealTimeEventsSource
Methods inherited from class com.symphony.bdk.core.activity.AbstractActivity
getInfo, processEvent
-
Constructor Details
-
HelpCommand
public HelpCommand(@Nonnull ActivityRegistry activityRegistry, @Nonnull MessageService messageService)
-
-
Method Details
-
onActivity
Contain the activity business logic. Executed only if theActivityMatcher.matches(ActivityContext)
returned a true value.- Overrides:
onActivity
in classSlashCommand
- Parameters:
context
- The activity context object.
-
info
Build activity info.- Overrides:
info
in classSlashCommand
-
equals
- Overrides:
equals
in classSlashCommand
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSlashCommand
-