@NotNull public static T withMessage(Bus<T> $this, @NotNull ConnectorMessage message)
Adds the specified interface ConnectorMessage to the bus context if the targetConnectorType is compatible.
interface ConnectorMessage,
targetConnectorType@NotNull public static T send(Bus<T> $this, long delay)
Sends previously registered interface ConnectorMessage.
interface ConnectorMessage@NotNull public static T send(Bus<T> $this, @NotNull java.lang.CharSequence i18nText, long delay, @NotNull java.lang.Object... i18nArgs)
Sends i18nText.
@NotNull public static T send(Bus<T> $this, @NotNull java.lang.CharSequence i18nText, @NotNull java.lang.Object... i18nArgs)
Sends i18nText.
@NotNull public static T send(Bus<T> $this, long delay, @NotNull kotlin.jvm.functions.Function1<? super T,? extends java.lang.Object> messageProvider)
Sends messages provided by messageProvider.
if messageProvider returns a CharSequence send it as text. Else call simply send().
messageProvider,
messageProvider,
CharSequence@NotNull public static T end(Bus<T> $this, @NotNull java.lang.CharSequence i18nText, long delay, @NotNull java.lang.Object... i18nArgs)
Sends i18nText as last bot answer.
@NotNull public static T end(Bus<T> $this, @NotNull java.lang.CharSequence i18nText, @NotNull java.lang.Object... i18nArgs)
Sends i18nText as last bot answer.
@NotNull public static T end(Bus<T> $this, long delay)
Send previously registered interface ConnectorMessage as last bot answer.
interface ConnectorMessage@NotNull public static T end(Bus<T> $this, long delay, @NotNull kotlin.jvm.functions.Function1<? super T,? extends java.lang.Object> messageProvider)
Sends messages provided by messageProvider as last bot answer.
if messageProvider returns a CharSequence send it as text. Else call simply end().
messageProvider,
messageProvider,
CharSequence@NotNull public static ai.tock.translator.TranslatedSequence translate(Bus<T> $this, @Nullable java.lang.CharSequence text, @NotNull java.lang.Object... args)
Translates and format if needed the text with the optionals args.
@NotNull public static ai.tock.translator.TranslatedSequence translate(Bus<T> $this, @Nullable ai.tock.translator.I18nLabelValue key)
Translates the specified key.
@Nullable public static ai.tock.translator.TranslatedSequence translateAndReturnBlankAsNull(Bus<T> $this, @Nullable java.lang.CharSequence s)
Translates the specified text and return null if the answer is blank.