Share via


CommunicationMessagesModelFactory.WhatsAppMessageTemplateItem Method

Definition

Initializes a new instance of WhatsAppMessageTemplateItem.

public static Azure.Communication.Messages.Models.Channels.WhatsAppMessageTemplateItem WhatsAppMessageTemplateItem (string name = default, string language = default, Azure.Communication.Messages.MessageTemplateStatus status = default, BinaryData content = default);
static member WhatsAppMessageTemplateItem : string * string * Azure.Communication.Messages.MessageTemplateStatus * BinaryData -> Azure.Communication.Messages.Models.Channels.WhatsAppMessageTemplateItem
Public Shared Function WhatsAppMessageTemplateItem (Optional name As String = Nothing, Optional language As String = Nothing, Optional status As MessageTemplateStatus = Nothing, Optional content As BinaryData = Nothing) As WhatsAppMessageTemplateItem

Parameters

name
String

The template's name.

language
String

The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'.

status
MessageTemplateStatus

The aggregated template status.

content
BinaryData

WhatsApp platform's template content. This is the payload returned from WhatsApp API.

Returns

A new WhatsAppMessageTemplateItem instance for mocking.

Applies to