Package ai.tock.bot.connector.media
Class MediaCardDescriptor
-
- All Implemented Interfaces:
-
ai.tock.bot.connector.media.MediaMessageDescriptor
public final class MediaCardDescriptor implements MediaMessageDescriptor
The MediaCard descriptor.
-
-
Field Summary
Fields Modifier and Type Field Description private final MediaMessageTypetypeprivate final I18nLabelValuetitleprivate final I18nLabelValuesubTitleprivate final MediaFileDescriptorfileprivate final List<MediaActionDescriptor>actionsprivate final BooleanfillCarousel
-
Constructor Summary
Constructors Constructor Description MediaCardDescriptor(I18nLabelValue title, I18nLabelValue subTitle, MediaFileDescriptor file, List<MediaActionDescriptor> actions, Boolean fillCarousel)
-
Method Summary
Modifier and Type Method Description MediaMessageTypegetType()The type of message. final I18nLabelValuegetTitle()final I18nLabelValuegetSubTitle()final MediaFileDescriptorgetFile()final List<MediaActionDescriptor>getActions()final BooleangetFillCarousel()MediaCardtoMessage(BotBus bus)Creates a MediaMessage for the specified BotBus. BooleancheckValidity()Returns true if the media is valid. -
-
Constructor Detail
-
MediaCardDescriptor
MediaCardDescriptor(I18nLabelValue title, I18nLabelValue subTitle, MediaFileDescriptor file, List<MediaActionDescriptor> actions, Boolean fillCarousel)
-
-
Method Detail
-
getType
MediaMessageType getType()
The type of message.
-
getTitle
final I18nLabelValue getTitle()
-
getSubTitle
final I18nLabelValue getSubTitle()
-
getFile
final MediaFileDescriptor getFile()
-
getActions
final List<MediaActionDescriptor> getActions()
-
getFillCarousel
final Boolean getFillCarousel()
-
toMessage
MediaCard toMessage(BotBus bus)
Creates a MediaMessage for the specified BotBus.
-
checkValidity
Boolean checkValidity()
Returns true if the media is valid.
-
-
-
-