Class Email

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

public class Email extends Object
Optional

Contact email address(es) formatted as an emails object. The object can contain the following fields:

- email – Optional. Email address.

- type – Optional. Standard values are HOME and WORK.

  • Constructor Details

    • Email

      public Email()
      Instantiates a new Email.
    • Email

      public Email(EmailType type, String email)
      Instantiates a new Email.
      Parameters:
      type - the type. Optional. Standard values are HOME and WORK.
      email - the email
  • Method Details

    • getType

      public EmailType getType()
      Gets type.
      Returns:
      the type
    • setType

      public Email setType(EmailType type)
      Sets type.
      Parameters:
      type - the type. Optional. Standard values are HOME and WORK.
      Returns:
      the type
    • getEmail

      public String getEmail()
      Gets email.
      Returns:
      the email
    • setEmail

      public Email setEmail(String email)
      Sets email.
      Parameters:
      email - the email
      Returns:
      the email