Package com.whatsapp.api.domain.messages
Class Address
java.lang.Object
com.whatsapp.api.domain.messages.Address
Optional.
Full contact address(es) formatted as an addresses object. The object can contain the following fields:
streetstring – Optional. Street number and name.
citystring – Optional. City name.
statestring – Optional. State abbreviation.
zipstring – Optional. ZIP code.
countrystring – Optional. Full country name.
country_codestring – Optional. Two-letter country abbreviation.
typestring – Optional. Standard values are HOME and WORK.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCity()
Gets city.Gets country.Gets country code.getState()
Gets state.Gets street.getType()
Gets type.getZip()
Gets zip.Sets city.setCountry
(String country) Sets country.setCountryCode
(String countryCode) Sets country code.Sets state.Sets street.setType
(AddressType type) Sets type.Sets zip.
-
Constructor Details
-
Address
public Address()
-
-
Method Details
-
getZip
Gets zip.- Returns:
- the zip
-
setZip
Sets zip.- Parameters:
zip
- the zip code. Optional. ZIP code.- Returns:
- the zip
-
getCountry
Gets country.- Returns:
- the country
-
setCountry
Sets country.- Parameters:
country
- Full country name.- Returns:
- the country
-
getCountryCode
Gets country code.- Returns:
- the country code
-
setCountryCode
Sets country code.- Parameters:
countryCode
- Optional. Two-letter country abbreviation.- Returns:
- the country code
-
getCity
Gets city.- Returns:
- the city
-
setCity
Sets city.- Parameters:
city
- Optional. City name.- Returns:
- the city
-
getStreet
Gets street.- Returns:
- the street
-
setStreet
Sets street.- Parameters:
street
- Optional. Street number and name.- Returns:
- the street
-
getState
Gets state.- Returns:
- the state
-
setState
Sets state.- Parameters:
state
- Optional. State abbreviation.- Returns:
- the state
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- Optional. Standard values are HOME and WORK.- Returns:
- the type
-