public static class ClientBus.DefaultImpls
A new bus instance is created for each user request.
The bus is used by bot implementations to reply to the user request.
@NotNull public static ClientBus send(ClientBus $this, @NotNull java.lang.CharSequence i18nText, @NotNull java.util.List<? extends java.lang.CharSequence> suggestions)
Sends a text with suggestions.
@NotNull public static ClientBus end(ClientBus $this, @NotNull java.lang.CharSequence i18nText, @NotNull java.util.List<? extends java.lang.CharSequence> suggestions)
Sends a text with suggestions as last bot answer.
@Nullable public static ai.tock.bot.api.model.context.Entity entity(ClientBus $this, @NotNull java.lang.String role)
Finds the Entity from the specified entity role.
@Nullable public static java.lang.String entityText(ClientBus $this, @NotNull java.lang.String role)
Returns the Entity text content from the specified entity role.
@Nullable public static <T extends Value> T entityValue(ClientBus $this, @NotNull java.lang.String role)
Returns the corresponding Entity from the specified entity role.
public static boolean removeEntity(ClientBus $this, @NotNull java.lang.String role)
Removes the entity of the specified role.
public static boolean removeEntity(ClientBus $this, @NotNull ai.tock.bot.api.model.context.Entity entity)
Remove the specified entity.
@NotNull public static ai.tock.bot.api.model.message.bot.I18nText translate(ClientBus $this, @Nullable java.lang.CharSequence text, @NotNull java.lang.Object... args)
@NotNull public static ai.tock.bot.api.model.message.bot.Card newCard(ClientBus $this, @Nullable java.lang.CharSequence title, @Nullable java.lang.CharSequence subTitle, @Nullable ai.tock.bot.api.model.message.bot.Attachment attachment, @NotNull java.util.List<ai.tock.bot.api.model.message.bot.Action> actions, long delay)
Creates a new Card.
@NotNull public static ai.tock.bot.api.model.message.bot.Carousel newCarousel(ClientBus $this, @NotNull java.util.List<ai.tock.bot.api.model.message.bot.Card> cards, long delay)
Creates a new Carousel.
@NotNull public static ai.tock.bot.api.model.message.bot.Carousel newCarousel(ClientBus $this, @NotNull ai.tock.bot.api.model.message.bot.Card[] cards, long delay)
Creates a new Carousel.
@NotNull public static ai.tock.bot.api.model.message.bot.Card newCard(ClientBus $this, @Nullable java.lang.CharSequence title, @Nullable java.lang.CharSequence subTitle, @Nullable ai.tock.bot.api.model.message.bot.Attachment attachment, @NotNull ai.tock.bot.api.model.message.bot.Action[] actions, long delay)
Creates a new Card.
@NotNull public static ai.tock.bot.api.model.message.bot.Action newAction(ClientBus $this, @NotNull java.lang.CharSequence title, @Nullable java.lang.String url)
Creates a new Action.
@NotNull public static ai.tock.bot.api.model.message.bot.Attachment newAttachment(ClientBus $this, @NotNull java.lang.String url, @Nullable ai.tock.bot.api.model.message.bot.AttachmentType type)
Creates a new Attachment.
@NotNull public static ClientBus send(ClientBus $this, @NotNull java.lang.CharSequence i18nText, @NotNull java.lang.Object... i18nArgs)
@NotNull public static ClientBus send(ClientBus $this, @NotNull java.lang.CharSequence i18nText, long delay, @NotNull java.lang.Object... i18nArgs)
@NotNull public static ClientBus send(ClientBus $this, long delay, @NotNull kotlin.jvm.functions.Function1<? super ai.tock.bot.api.client.ClientBus,? extends java.lang.Object> messageProvider)
@NotNull public static ClientBus end(ClientBus $this, @NotNull java.lang.CharSequence i18nText, @NotNull java.lang.Object... i18nArgs)
@NotNull public static ClientBus end(ClientBus $this, @NotNull java.lang.CharSequence i18nText, long delay, @NotNull java.lang.Object... i18nArgs)
@NotNull public static ClientBus end(ClientBus $this, long delay, @NotNull kotlin.jvm.functions.Function1<? super ai.tock.bot.api.client.ClientBus,? extends java.lang.Object> messageProvider)
@NotNull public static ai.tock.translator.TranslatedSequence translate(ClientBus $this, @Nullable ai.tock.translator.I18nLabelValue key)
@NotNull public static ai.tock.translator.TranslatedSequence translate(ClientBus $this, @Nullable java.lang.CharSequence text, @NotNull java.util.List<? extends java.lang.Object> args)
@NotNull public static ai.tock.translator.I18nLabelValue i18n(ClientBus $this, @NotNull java.lang.CharSequence defaultLabel, @NotNull java.lang.Object... args)
@Nullable public static ai.tock.translator.TranslatedSequence translateAndReturnBlankAsNull(ClientBus $this, @Nullable java.lang.CharSequence s)