Class Component<T extends Component<T>>

java.lang.Object
com.whatsapp.api.domain.messages.Component<T>
Direct Known Subclasses:
BodyComponent, ButtonComponent, HeaderComponent

public abstract class Component<T extends Component<T>> extends Object
The type Component.
  • Constructor Details

    • Component

      protected Component(ComponentType type)
      Instantiates a new Component.
      Parameters:
      type - the type
  • Method Details

    • getType

      public ComponentType getType()
      Gets type.
      Returns:
      the type
    • getParameters

      public List<Parameter> getParameters()
      Gets parameters.
      Returns:
      the parameters
    • setParameters

      public Component<T> setParameters(List<Parameter> parameters)
      Sets parameters.
      Parameters:
      parameters - the parameters
      Returns:
      the parameters
    • addParameter

      public Component<T> addParameter(Parameter parameter)
      Add parameter component.
      Parameters:
      parameter - the parameter
      Returns:
      the component