Package com.whatsapp.api.domain.messages
Class Section
java.lang.Object
com.whatsapp.api.domain.messages.Section
Required for List Messages and Multi-Product Messages
- products: Required for Multi-Product Messages - Array of product objects. There is a minimum of 1 product per section and a maximum of 30 products across all sections
- rows: Required for List Messages - Contains a list of rows. You can have a total of 10 rows across your sections.
- Each row must have a:- title: Required - Maximum length: 24 characters
- ID: Required - Maximum length: 200 characters
- description: Optional - Maximum length: 72 characters
- title: Required if the message has more than one section - Title of the section
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddProductItem
(Product product) Add product item section.Add row section.Gets product items.getRows()
Gets rows.getTitle()
Gets title.setProducts
(List<Product> products) Sets product items.Sets rows.Sets title.
-
Field Details
-
title
The Title. -
products
The Products. -
rows
The Rows.
-
-
Constructor Details
-
Section
public Section()
-
-
Method Details
-
getTitle
Gets title.- Returns:
- the title
-
setTitle
Sets title.- Parameters:
title
- the title- Returns:
- the title
-
getProducts
Gets product items.- Returns:
- the product items
-
setProducts
Sets product items.- Parameters:
products
- the products- Returns:
- the product items
-
addProductItem
Add product item section.- Parameters:
product
- the product- Returns:
- the section
-
getRows
Gets rows.- Returns:
- the rows
-
setRows
Sets rows.- Parameters:
rows
- the rows- Returns:
- the rows
-
addRow
Add row section.- Parameters:
row
- the row- Returns:
- the section
-