Package com.whatsapp.api.domain.messages
Class Phone
java.lang.Object
com.whatsapp.api.domain.messages.Phone
Optional.
Contact phone number(s) formatted as a phone object. The object can contain the following fields:
- phone – Optional. Automatically populated with the `wa_id` value as a formatted phone number.
- type – Optional. Standard Values are CELL, MAIN, IPHONE, HOME, and WORK.
- wa_id – Optional. WhatsApp ID.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Phone
public Phone()
-
-
Method Details
-
getPhone
Gets phone.- Returns:
- the phone
-
setPhone
Sets phone.- Parameters:
phone
- Optional. Automatically populated with the `wa_id` value as a formatted phone number.- Returns:
- the phone
-
getWaId
Gets wa id.- Returns:
- the wa id
-
setWaId
Sets wa id.- Parameters:
waId
- Optional. WhatsApp ID.- Returns:
- the wa id
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- Optional. Standard Values are CELL, MAIN, IPHONE, HOME, and WORK.- Returns:
- the type
-