ContentTemplate

data class ContentTemplate(val sid: String, val friendlyName: String, val dateCreated: Date, val dateUpdated: Date, val variables: List<ContentTemplateVariable>, val variants: Map<String, ContentData>)

Rich content template.

Use ConversationsClient.getContentTemplates to request all content templates for current account.

Constructors

Link copied to clipboard
constructor(sid: String, friendlyName: String, dateCreated: Date, dateUpdated: Date, variables: List<ContentTemplateVariable>, variants: Map<String, ContentData>)

Properties

Link copied to clipboard

The timestamp when this template was created.

Link copied to clipboard

The timestamp when this template was updated last time.

Link copied to clipboard

String name used to describe the Content. Not visible to the recipient.

Link copied to clipboard
val sid: String

The server-assigned unique identifier for ContentTemplate.

Link copied to clipboard

Declare variables and define default placeholder values for variables included in content.

Link copied to clipboard

Variants of the content. See ContentData definition.