Package com.whatsapp.api.domain.messages
Class Contact
java.lang.Object
com.whatsapp.api.domain.messages.Contact
Full contact information.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAddress
(Address address) Add addresses contact.addAddresses
(Address address) Deprecated, for removal: This API element is subject to removal in a future version.Add emails contact.Deprecated, for removal: This API element is subject to removal in a future version.useaddEmail(Email)
insteadAdd phones contact.Deprecated, for removal: This API element is subject to removal in a future version.useaddPhone(Phone)
insteadAdd url contact.Deprecated, for removal: This API element is subject to removal in a future version.useaddUrl(Url)
Gets addresses.Gets birthday.Gets emails.getName()
Gets name.getOrg()
Gets org.Gets phones.getUrls()
Gets urls.setAddresses
(List<Address> addresses) Sets addresses.setBirthday
(String birthday) Sets birthday.Sets emails.Sets name.Sets org.Sets phones.Sets urls.
-
Constructor Details
-
Contact
public Contact()
-
-
Method Details
-
getBirthday
Gets birthday.- Returns:
- the birthday
-
setBirthday
Sets birthday.- Parameters:
birthday
- the birthday. Optional. YYYY-MM-DD formatted string.- Returns:
- Contact
-
getEmails
Gets emails.- Returns:
- the emails
-
setEmails
Sets emails.- Parameters:
emails
- Optional. Contact email address(es) formatted as an emails object.- Returns:
- the emails
-
addEmails
Deprecated, for removal: This API element is subject to removal in a future version.useaddEmail(Email)
insteadAdd emails contact.- Parameters:
email
- Optional. Contact email address(es) formatted as an emails object.- Returns:
- the contact
-
addEmail
Add emails contact.- Parameters:
email
- Optional. Contact email address(es) formatted as an emails object.- Returns:
- the contact
-
getAddresses
Gets addresses.- Returns:
- the addresses
-
setAddresses
Sets addresses.- Parameters:
addresses
- Optional. Full contact address(es) formatted as an addresses object- Returns:
- the addresses
-
addAddresses
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
Add addresses contact.- Parameters:
address
- Optional. Full contact address(es) formatted as an addresses object- Returns:
- the contact
-
getUrls
Gets urls.- Returns:
- the urls
-
setUrls
Sets urls.- Parameters:
urls
- Optional. Contact URL(s) formatted as a urls object.- Returns:
- the urls
-
addUrls
Deprecated, for removal: This API element is subject to removal in a future version.useaddUrl(Url)
Add urls contact.- Parameters:
url
- Optional.Contact URL(s) formatted as a urls object.- Returns:
- the contact
-
addUrl
Add url contact.- Parameters:
url
- Optional.Contact URL(s) formatted as a urls object.- Returns:
- the contact
-
getOrg
Gets org.- Returns:
- the org
-
setOrg
Sets org.- Parameters:
org
- Optional. Contact organization information formatted as an org object- Returns:
- the org
-
getName
Gets name.- Returns:
- the name
-
setName
Sets name.- Parameters:
name
-Name
. Required. Full contact name formatted as a name object.- Returns:
- the name
-
getPhones
Gets phones.- Returns:
- the phones
-
setPhones
Sets phones.- Parameters:
phones
-Phone
Optional. Contact phone number(s) formatted as a phone object.- Returns:
- the phones
-
addPhones
Deprecated, for removal: This API element is subject to removal in a future version.useaddPhone(Phone)
insteadAdd phones contact.- Parameters:
phone
- Optional. Contact phone number(s) formatted as a phone object.- Returns:
- the contact
-
addPhone
Add phones contact.- Parameters:
phone
- Optional. Contact phone number(s) formatted as a phone object.- Returns:
- the contact
-
addAddress(Address)