Package com.whatsapp.api.domain.messages
Class Component<T extends Component<T>>
java.lang.Object
com.whatsapp.api.domain.messages.Component<T>
- Direct Known Subclasses:
BodyComponent
,ButtonComponent
,HeaderComponent
The type Component.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Component
(ComponentType type) Instantiates a new Component. -
Method Summary
Modifier and TypeMethodDescriptionaddParameter
(Parameter parameter) Add parameter component.Gets parameters.getType()
Gets type.setParameters
(List<Parameter> parameters) Sets parameters.
-
Constructor Details
-
Component
Instantiates a new Component.- Parameters:
type
- the type
-
-
Method Details
-
getType
Gets type.- Returns:
- the type
-
getParameters
Gets parameters.- Returns:
- the parameters
-
setParameters
Sets parameters.- Parameters:
parameters
- the parameters- Returns:
- the parameters
-
addParameter
Add parameter component.- Parameters:
parameter
- the parameter- Returns:
- the component
-