Class Address

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

public class Address extends Object
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 Details

    • Address

      public Address()
  • Method Details

    • getZip

      public String getZip()
      Gets zip.
      Returns:
      the zip
    • setZip

      public Address setZip(String zip)
      Sets zip.
      Parameters:
      zip - the zip code. Optional. ZIP code.
      Returns:
      the zip
    • getCountry

      public String getCountry()
      Gets country.
      Returns:
      the country
    • setCountry

      public Address setCountry(String country)
      Sets country.
      Parameters:
      country - Full country name.
      Returns:
      the country
    • getCountryCode

      public String getCountryCode()
      Gets country code.
      Returns:
      the country code
    • setCountryCode

      public Address setCountryCode(String countryCode)
      Sets country code.
      Parameters:
      countryCode - Optional. Two-letter country abbreviation.
      Returns:
      the country code
    • getCity

      public String getCity()
      Gets city.
      Returns:
      the city
    • setCity

      public Address setCity(String city)
      Sets city.
      Parameters:
      city - Optional. City name.
      Returns:
      the city
    • getStreet

      public String getStreet()
      Gets street.
      Returns:
      the street
    • setStreet

      public Address setStreet(String street)
      Sets street.
      Parameters:
      street - Optional. Street number and name.
      Returns:
      the street
    • getState

      public String getState()
      Gets state.
      Returns:
      the state
    • setState

      public Address setState(String state)
      Sets state.
      Parameters:
      state - Optional. State abbreviation.
      Returns:
      the state
    • getType

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

      public Address setType(AddressType type)
      Sets type.
      Parameters:
      type - Optional. Standard values are HOME and WORK.
      Returns:
      the type