Class MessageTemplate
java.lang.Object
com.whatsapp.api.domain.templates.MessageTemplate
Wrapper to Message Temaplate.
A message template is required for any business-initiated messages sent using the WhatsApp Business Platform.
These templates can be created using the Business Management API or the WhatsApp Business Manager.
See more
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddComponent
(Component<?> component) Add component message template.addComponents
(Component<?>... components) Add components message template.Gets category.Gets components.Gets language.getName()
Gets name.setCategory
(Category category) Sets category.setComponents
(List<Component<?>> components) Sets components.setLanguage
(LanguageType languageType) Sets language.Sets name.
-
Constructor Details
-
MessageTemplate
public MessageTemplate()
-
-
Method Details
-
addComponent
Add component message template.- Parameters:
component
- the component- Returns:
- the message template
-
addComponents
Add components message template.- Parameters:
components
- the components- Returns:
- the message template
-
getName
Gets name.- Returns:
- the name
-
setName
Sets name.- Parameters:
name
- the name- Returns:
- the name
-
getLanguage
Gets language.- Returns:
- the language
-
setLanguage
Sets language.- Parameters:
languageType
- the language- Returns:
- the language
-
getCategory
Gets category.- Returns:
- the category
-
setCategory
Sets category.- Parameters:
category
- the category- Returns:
- the category
-
getComponents
Gets components.- Returns:
- the components
-
setComponents
Sets components.- Parameters:
components
- the components- Returns:
- the components
-