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
fun ContentTemplate(    sid: String,     friendlyName: String,     dateCreated: Date,     dateUpdated: Date,     variables: List<ContentTemplateVariable>,     variants: Map<String, ContentData>)

Properties

Link copied to clipboard
val dateCreated: Date

The timestamp when this template was created.

Link copied to clipboard
val dateUpdated: Date

The timestamp when this template was updated last time.

Link copied to clipboard
val friendlyName: String

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
val variables: List<ContentTemplateVariable>

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

Link copied to clipboard
val variants: Map<String, ContentData>

Variants of the content. See ContentData definition.