tock / ai.tock.bot.connector.media / MediaCardDescriptor

# MediaCardDescriptor

`data class MediaCardDescriptor : MediaMessageDescriptor` (source)

The MediaCard descriptor.

### Constructors

#### <init> | The MediaCard descriptor. `MediaCardDescriptor(title: I18nLabelValue?, subTitle: I18nLabelValue?, file: MediaFileDescriptor?, actions: List<MediaActionDescriptor> = emptyList(), fillCarousel: Boolean = false)`

### Properties

#### actions | `val actions: List<MediaActionDescriptor>`
#### file | `val file: MediaFileDescriptor?`
#### fillCarousel | `val fillCarousel: Boolean`
#### subTitle | `val subTitle: I18nLabelValue?`
#### title | `val title: I18nLabelValue?`
#### type | The type of message. `val type: MediaMessageType`

### Functions

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