StaticContentFormat

A message format containing non-interactive content such as text, attachments, rich links, or embedded web views.

Inheritors

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
class AttachmentsFormat(val text: String?, val attachments: List<FileAsset>) : StaticContentFormat

A message containing one or more file attachments with optional accompanying text.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class CancelActionFormat(val sequenceId: Int = 0, val timestamp: Long = Date().time) : StaticContentFormat

A message representing a cancellation of a prior interactive action.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class ErrorMessageFormat(val title: String, val errorDetails: ErrorDetails) : StaticContentFormat

A message displaying an error to the user, with a title and detailed error information.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class ExperienceTypeFormat(val message: String, val values: List<ExperienceTypeValue>) : StaticContentFormat

A message carrying experience-type values for routing or display purposes.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class RichLinkFormat(val image: FileAsset.ImageAsset.RichLinkImage? = null, val linkItem: LinkItem, val text: String?) : StaticContentFormat

A message displaying a rich link preview with an optional image and descriptive text.

Link copied to clipboard

The specific type of static content in this message.

Link copied to clipboard
@JsonClass(generateAdapter = true)
open class TextFormat(val text: String, val citationContent: CitationContent? = null) : StaticContentFormat

A message containing plain or markdown-formatted text, optionally with citation references.

Link copied to clipboard
@JsonClass(generateAdapter = true)
class WebViewFormat(@Json(name = "url") val baseUrl: String, val title: TitleItem, val parameters: List<SurveyParameter>?, val persistedUri: Uri? = null) : StaticContentFormat

A message containing an embedded web view, typically used for surveys or external forms.

Properties

Link copied to clipboard

The specific format type that determines how this message content is rendered.