Class MatchResult

java.lang.Object
com.symphony.bdk.core.activity.parsing.MatchResult

@API(status=INTERNAL) public class MatchResult extends Object
Class representing the outcome of a matching between a SlashCommandPattern and a V4Message. It can contain the map of arguments if applicable. Key is argument name, value is the actual value in the message. Argument value can be of type String, Mention, Cashtag or Hashtag.
  • Constructor Details

    • MatchResult

      public MatchResult(boolean isMatching)
      Parameters:
      isMatching - whether the message is matching
    • MatchResult

      public MatchResult(boolean isMatching, Map<String,Object> arguments)
      Parameters:
      isMatching - whether the message is matching
      arguments - the map of arguments