RichLink

abstract class RichLink : Message

A RichLink message to display.

Each RichLink message has a title and media image to display in conjunction with an associated URL. If the message is touched, then the URL should be opened.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Attachments provided with the message. This field can be empty. It contains attachments that the user or agent sent alongside with the message.

Link copied to clipboard
abstract val author: MessageAuthor?

Author associated with this message.

Link copied to clipboard
abstract val createdAt: Date

The timestamp of when the message was created on the server. Similarly to id this field shouldn't change for the lifetime of the message.

Link copied to clipboard

The direction in which the message is sent.

Link copied to clipboard
abstract val fallbackText: String?

Optional fallback text which can be used if UI integration doesn't support concrete subtype of Message.

Link copied to clipboard
abstract val id: UUID

The id that was assigned to this message. If another message has matching id, it's the same message with possibly different content.

Link copied to clipboard
abstract val media: Media

image media information to display in RichLink.

Link copied to clipboard

The otherwise uncategorizable properties for this message. It can contain anything from message status to custom properties.

Link copied to clipboard
abstract val threadId: UUID

The thread id that this message belongs to. Messages should never be mismatched between threads as this can lead to inconsistencies and undefined behavior.

Link copied to clipboard
abstract val title: String

title to display.

Link copied to clipboard
abstract val url: String

URL to open if the item is selected.