tock / ai.tock.bot.connector.media / MediaCard

MediaCard

data class MediaCard : MediaMessage (source)

A media card. At least one of title, subTitle or file is not null.

Constructors

<init>

A media card. At least one of title, subTitle or file is not null.

MediaCard(title: CharSequence?, subTitle: CharSequence?, file: MediaFile?, actions: List<MediaAction> = emptyList())

Properties

actions

val actions: List<MediaAction>

file

val file: MediaFile?

subTitle

val subTitle: CharSequence?

title

val title: CharSequence?

Functions

checkValidity

Returns true if the media is valid.

fun checkValidity(): Boolean

toGenericMessage

Returns a GenericMessage view of this MediaMessage if supported.

fun toGenericMessage(): GenericMessage?