Class Contact

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

public class Contact extends Object
Full contact information.
See Also:
  • Constructor Details

    • Contact

      public Contact()
  • Method Details

    • getBirthday

      public String getBirthday()
      Gets birthday.
      Returns:
      the birthday
    • setBirthday

      public Contact setBirthday(String birthday)
      Sets birthday.
      Parameters:
      birthday - the birthday. Optional. YYYY-MM-DD formatted string.
      Returns:
      Contact
    • getEmails

      public List<Email> getEmails()
      Gets emails.
      Returns:
      the emails
    • setEmails

      public Contact setEmails(List<Email> emails)
      Sets emails.
      Parameters:
      emails - Optional. Contact email address(es) formatted as an emails object.
      Returns:
      the emails
    • addEmails

      @Deprecated(forRemoval=true) public Contact addEmails(Email email)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use addEmail(Email) instead
      Add emails contact.
      Parameters:
      email - Optional. Contact email address(es) formatted as an emails object.
      Returns:
      the contact
    • addEmail

      public Contact addEmail(Email email)
      Add emails contact.
      Parameters:
      email - Optional. Contact email address(es) formatted as an emails object.
      Returns:
      the contact
    • getAddresses

      public List<Address> getAddresses()
      Gets addresses.
      Returns:
      the addresses
    • setAddresses

      public Contact setAddresses(List<Address> addresses)
      Sets addresses.
      Parameters:
      addresses - Optional. Full contact address(es) formatted as an addresses object
      Returns:
      the addresses
    • addAddresses

      @Deprecated(forRemoval=true) public Contact addAddresses(Address address)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Add addresses contact.
      Parameters:
      address - Optional. Full contact address(es) formatted as an addresses object
      Returns:
      the contact
    • addAddress

      public Contact addAddress(Address address)
      Add addresses contact.
      Parameters:
      address - Optional. Full contact address(es) formatted as an addresses object
      Returns:
      the contact
    • getUrls

      public List<Url> getUrls()
      Gets urls.
      Returns:
      the urls
    • setUrls

      public Contact setUrls(List<Url> urls)
      Sets urls.
      Parameters:
      urls - Optional. Contact URL(s) formatted as a urls object.
      Returns:
      the urls
    • addUrls

      @Deprecated(forRemoval=true) public Contact addUrls(Url url)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Add urls contact.
      Parameters:
      url - Optional.Contact URL(s) formatted as a urls object.
      Returns:
      the contact
    • addUrl

      public Contact addUrl(Url url)
      Add url contact.
      Parameters:
      url - Optional.Contact URL(s) formatted as a urls object.
      Returns:
      the contact
    • getOrg

      public Org getOrg()
      Gets org.
      Returns:
      the org
    • setOrg

      public Contact setOrg(Org org)
      Sets org.
      Parameters:
      org - Optional. Contact organization information formatted as an org object
      Returns:
      the org
    • getName

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

      public Contact setName(Name name)
      Sets name.
      Parameters:
      name - Name. Required. Full contact name formatted as a name object.
      Returns:
      the name
    • getPhones

      public List<Phone> getPhones()
      Gets phones.
      Returns:
      the phones
    • setPhones

      public Contact setPhones(List<Phone> phones)
      Sets phones.
      Parameters:
      phones - Phone Optional. Contact phone number(s) formatted as a phone object.
      Returns:
      the phones
    • addPhones

      @Deprecated(forRemoval=true) public Contact addPhones(Phone phone)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use addPhone(Phone) instead
      Add phones contact.
      Parameters:
      phone - Optional. Contact phone number(s) formatted as a phone object.
      Returns:
      the contact
    • addPhone

      public Contact addPhone(Phone phone)
      Add phones contact.
      Parameters:
      phone - Optional. Contact phone number(s) formatted as a phone object.
      Returns:
      the contact