Class Layer1ApiSoundAlertDeclarationMessage

java.lang.Object
velox.api.layer1.messages.Layer1ApiSoundAlertDeclarationMessage
All Implemented Interfaces:
Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromLayer

public class Layer1ApiSoundAlertDeclarationMessage
extends java.lang.Object
implements Layer1ApiStrategiesEchoMessagesLayer.StrategyEchoMessageFromLayer
Use this message to declare your addon intents of sending alerts to a user. The class specifies a "blueprint" of future alerts group. Send created message via Layer1ApiAdminProvider.sendUserMessage(Object), and link the declaration message to an alert via Layer1ApiSoundAlertMessage.alertDeclarationId
  • Field Details

    • id

      public final java.lang.String id
      Id can be used to reference this declaration message
    • triggerDescription

      public final java.lang.String triggerDescription
      Short description of the trigger event for this declaration. Will be shown on the UI
    • source

      public final java.lang.Class<?> source
      Class that created this message. The class must have Layer1StrategyName annotation present
    • strategyName

      public final java.lang.String strategyName
      Name of the strategy that created this message, extracted from Layer1StrategyName.value(), displayed on the UI
    • aliasMatcher

      public final java.util.function.Predicate<java.lang.String> aliasMatcher
      The predicate obtains an instrument alias. If it returns true, the declaration is believed to be linked to the specified alias. Used internally for declarations filtration on the UI
    • popup

      public final boolean popup
      True if alerts described by this declaration have popup notification
    • sound

      public final boolean sound
      True if alerts described by this declaration have sound notification
    • isRepeated

      public final boolean isRepeated
      True if alerts described by this declaration are repeated - Layer1ApiSoundAlertMessage.repeatCount > 1
    • isAdd

      public final boolean isAdd
      True if this message adds declaration. Otherwise, the declaration with the same id will be removed
  • Method Details