-
- All Implemented Interfaces:
-
ai.tock.bot.connector.media.MediaMessageDescriptor
public final class MediaActionDescriptor implements MediaMessageDescriptor
Descriptor for MediaAction.
-
-
Field Summary
Fields Modifier and Type Field Description private final MediaMessageTypetypeprivate final I18nLabelValuetitleprivate Stringurl
-
Constructor Summary
Constructors Constructor Description MediaActionDescriptor(I18nLabelValue title, String url)
-
Method Summary
Modifier and Type Method Description MediaActiontoMessage(BotBus bus)Creates a MediaMessage for the specified BotBus. final I18nLabelValuecomponent1()final Stringcomponent2()final MediaActionDescriptorcopy(I18nLabelValue title, String url)MediaMessageTypegetType()The type of message. final I18nLabelValuegetTitle()final StringgetUrl()final UnitsetUrl(String url)-
Methods inherited from class ai.tock.bot.connector.media.MediaActionDescriptor
checkValidity -
Methods inherited from class ai.tock.bot.connector.media.MediaMessageDescriptor
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MediaActionDescriptor
MediaActionDescriptor(I18nLabelValue title, String url)
-
-
Method Detail
-
toMessage
MediaAction toMessage(BotBus bus)
Creates a MediaMessage for the specified BotBus.
-
component1
final I18nLabelValue component1()
-
component2
final String component2()
-
copy
final MediaActionDescriptor copy(I18nLabelValue title, String url)
-
getType
MediaMessageType getType()
The type of message.
-
getTitle
final I18nLabelValue getTitle()
-
-
-
-