Package velox.api.layer1.messages
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-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLayer1ApiSoundAlertDeclarationMessage.Builder -
Field Summary
Fields Modifier and Type Field Description java.util.function.Predicate<java.lang.String>aliasMatcherThe predicate obtains an instrument alias.java.lang.StringidId can be used to reference this declaration messagebooleanisAddTrue if this message adds declaration.booleanisRepeatedTrue if alerts described by this declaration are repeated -Layer1ApiSoundAlertMessage.repeatCount> 1booleanpopupTrue if alerts described by this declaration have popup notificationbooleansoundTrue if alerts described by this declaration have sound notificationjava.lang.Class<?>sourceClass that created this message.java.lang.StringstrategyNameName of the strategy that created this message, extracted fromLayer1StrategyName.value(), displayed on the UIjava.lang.StringtriggerDescriptionShort description of the trigger event for this declaration. -
Method Summary
Modifier and Type Method Description static Layer1ApiSoundAlertDeclarationMessage.Builderbuilder()Creates builder to buildLayer1ApiSoundAlertDeclarationMessage.java.lang.StringtoString()
-
Field Details
-
id
public final java.lang.String idId can be used to reference this declaration message -
triggerDescription
public final java.lang.String triggerDescriptionShort description of the trigger event for this declaration. Will be shown on the UI -
source
public final java.lang.Class<?> sourceClass that created this message. The class must haveLayer1StrategyNameannotation present -
strategyName
public final java.lang.String strategyNameName of the strategy that created this message, extracted fromLayer1StrategyName.value(), displayed on the UI -
aliasMatcher
public final java.util.function.Predicate<java.lang.String> aliasMatcherThe 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 popupTrue if alerts described by this declaration have popup notification -
sound
public final boolean soundTrue if alerts described by this declaration have sound notification -
isRepeated
public final boolean isRepeatedTrue if alerts described by this declaration are repeated -Layer1ApiSoundAlertMessage.repeatCount> 1 -
isAdd
public final boolean isAddTrue if this message adds declaration. Otherwise, the declaration with the sameidwill be removed
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
builder
Creates builder to buildLayer1ApiSoundAlertDeclarationMessage.- Returns:
- created builder
-