Class TemplateMessage

java.lang.Object
com.whatsapp.api.domain.messages.TemplateMessage

public class TemplateMessage extends Object
The type Template message.
  • Constructor Details

    • TemplateMessage

      public TemplateMessage()
  • Method Details

    • getComponents

      public List<Component<?>> getComponents()
      Gets components.
      Returns:
      the components
    • setComponents

      public TemplateMessage setComponents(List<Component<?>> components)
      Sets components.
      Parameters:
      components - the components
      Returns:
      the components
    • getName

      public String getName()
      Gets name.
      Returns:
      the name
    • setName

      public TemplateMessage setName(String name)
      Sets name.
      Parameters:
      name - the name
      Returns:
      the name
    • getLanguage

      public Language getLanguage()
      Gets language.
      Returns:
      the language
    • setLanguage

      public TemplateMessage setLanguage(Language language)
      Sets language.
      Parameters:
      language - the language
      Returns:
      the language
    • addComponent

      public TemplateMessage addComponent(Component<?> component)
      Add component template message.
      Parameters:
      component - the component
      Returns:
      the template message