MessageTemplateItem Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The message template as returned from the service. Please note MessageTemplateItem is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include WhatsAppMessageTemplateItem.
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Communication.Messages.UnknownMessageTemplateItem))]
public abstract class MessageTemplateItem : System.ClientModel.Primitives.IJsonModel<Azure.Communication.Messages.MessageTemplateItem>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.Messages.MessageTemplateItem>
public class MessageTemplateItem
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Communication.Messages.UnknownMessageTemplateItem))>]
type MessageTemplateItem = class
interface IJsonModel<MessageTemplateItem>
interface IPersistableModel<MessageTemplateItem>
type MessageTemplateItem = class
Public MustInherit Class MessageTemplateItem
Implements IJsonModel(Of MessageTemplateItem), IPersistableModel(Of MessageTemplateItem)
Public Class MessageTemplateItem
- Inheritance
-
MessageTemplateItem
- Derived
- Attributes
- Implements
Constructors
MessageTemplateItem(String, MessageTemplateStatus) |
Initializes a new instance of MessageTemplateItem. |
Properties
ChannelType |
Gets the channel type. |
Language |
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'. |
Name |
The template's name. |
Status |
The aggregated template status. |
The WhatsApp-specific template response contract. |
Explicit Interface Implementations
IJsonModel<MessageTemplateItem>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<MessageTemplateItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<MessageTemplateItem>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<MessageTemplateItem>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<MessageTemplateItem>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |