Package com.whatsapp.api.domain.messages
Class TemplateMessage
java.lang.Object
com.whatsapp.api.domain.messages.TemplateMessage
The type Template message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddComponent(Component<?> component) Add component template message.Gets components.Gets language.getName()Gets name.setComponents(List<Component<?>> components) Sets components.setLanguage(Language language) Sets language.Sets name.
-
Constructor Details
-
TemplateMessage
public TemplateMessage()
-
-
Method Details
-
getComponents
Gets components.- Returns:
- the components
-
setComponents
Sets components.- Parameters:
components- the components- Returns:
- the components
-
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:
language- the language- Returns:
- the language
-
addComponent
Add component template message.- Parameters:
component- the component- Returns:
- the template message
-