MessageTemplateItem Class
- java.
lang. Object - com.
azure. communication. messages. models. MessageTemplateItem
- com.
Implements
public abstract class MessageTemplateItem
implements JsonSerializable<MessageTemplateItem>
The message template as returned from the service.
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected | MessageTemplateItem(String language, MessageTemplateStatus status) |
Creates an instance of Message |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Message |
fromJson(JsonReader jsonReader)
Reads an instance of Message |
Communication |
getKind()
Get the kind property: The type discriminator describing a template type. |
String |
getLanguage()
Get the language property: 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. |
String |
getName()
Get the name property: The template's name. |
Message |
getStatus()
Get the status property: The aggregated template status. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
MessageTemplateItem
protected MessageTemplateItem(String language, MessageTemplateStatus status)
Creates an instance of MessageTemplateItem class.
Parameters:
Method Details
fromJson
public static MessageTemplateItem fromJson(JsonReader jsonReader)
Reads an instance of MessageTemplateItem from the JsonReader.
Parameters:
Returns:
Throws:
getKind
public CommunicationMessagesChannel getKind()
Get the kind property: The type discriminator describing a template type.
Returns:
getLanguage
public String getLanguage()
Get the language property: 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'.
Returns:
getName
public String getName()
Get the name property: The template's name.
Returns:
getStatus
public MessageTemplateStatus getStatus()
Get the status property: The aggregated template status.
Returns:
toJson
Applies to
Azure SDK for Java