tock / ai.tock.bot.connector.media / MediaMessageDescriptor

# MediaMessageDescriptor

`interface MediaMessageDescriptor` (source)

Descriptor of MediaMessage.

### Properties

#### type | The type of message. `abstract val type: MediaMessageType`

### Functions

#### checkValidity | Returns true if the media is valid. `open fun checkValidity(): Boolean`
#### toMessage | Creates a MediaMessage for the specified BotBus. `abstract fun toMessage(bus: BotBus): MediaMessage`

### Inheritors

#### MediaActionDescriptor | Descriptor for MediaAction. `data class MediaActionDescriptor : MediaMessageDescriptor`
#### MediaCardDescriptor | The MediaCard descriptor. `data class MediaCardDescriptor : MediaMessageDescriptor`
#### MediaCarouselDescriptor | The MediaCarousel descriptor. `data class MediaCarouselDescriptor : MediaMessageDescriptor`