tock / ai.tock.bot.connector.teams.messages

Package ai.tock.bot.connector.teams.messages

Teams connector complex messages

Types

TeamsBotMessage

abstract class TeamsBotMessage : ConnectorMessage

TeamsBotTextMessage

class TeamsBotTextMessage : TeamsBotMessage

TeamsCardAction

class TeamsCardAction : TeamsBotMessage

TeamsCarousel

class TeamsCarousel : TeamsBotMessage

TeamsHeroCard

class TeamsHeroCard : TeamsBotMessage

Extensions for External Classes

com.microsoft.bot.schema.models.CardAction

Functions

cardImage

fun cardImage(url: String): CardImage

nlpCardAction

fun <T : Bus<T>> T.nlpCardAction(title: CharSequence): CardAction

teamsCarousel

fun I18nTranslator.teamsCarousel(carouselContent: List<TeamsBotMessage>): TeamsCarousel

teamsHeroCard

fun I18nTranslator.teamsHeroCard(title: CharSequence? = null, subtitle: CharSequence? = null, attachmentContent: CharSequence, images: List<CardImage>? = null, buttons: List<CardAction>? = null, tap: CardAction? = null): TeamsHeroCard

teamsMessage

fun I18nTranslator.teamsMessage(text: CharSequence): TeamsBotTextMessage

teamsMessageWithButtonCard

fun I18nTranslator.teamsMessageWithButtonCard(urlText: CharSequence, links: List<CardAction>): TeamsCardAction

urlCardAction

fun <T : Bus<T>> T.urlCardAction(title: CharSequence, url: String): CardAction

withTeams

fun <T : Bus<T>> T.withTeams(messageProvider: () -> TeamsBotMessage): T