Class Phone

com.yandex.mapkit.search

java.lang.Object ⇽ Phone

public class Phone

Organization phone.

Constructors

Phone(@NonNull PhoneType type, @NonNull String formattedNumber, @Nullable String info, @Nullable Integer country, @Nullable Integer prefix, @Nullable Integer ext, int number)
Phone()

Use constructor with parameters in your code.

Methods

Integer getCountry()

Phone country code as unsigned integer.

Integer getExt()

Phone extension as unsigned integer.

String getFormattedNumber()

Full phone number as human readable string.

String getInfo()

Some additional info to differentiate multiple phones for single organization.

int getNumber()

Phone number as unsigned integer.

Integer getPrefix()

Phone prefix as unsigned integer.

PhoneType getType()

Phone type.

void serialize(Archive archive)

Constructor Detail

Phone

public Phone (@NonNull PhoneType type, @NonNull String formattedNumber, @Nullable String info, @Nullable Integer country, @Nullable Integer prefix, @Nullable Integer ext, int number)

Phone

public Phone ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getCountry

public Integer getCountry ()

Phone country code as unsigned integer.

Optional field, can be null.

getExt

public Integer getExt ()

Phone extension as unsigned integer.

Optional field, can be null.

getFormattedNumber

public String getFormattedNumber ()

Full phone number as human readable string.

getInfo

public String getInfo ()

Some additional info to differentiate multiple phones for single organization.

Optional field, can be null.

getNumber

public int getNumber ()

Phone number as unsigned integer.

getPrefix

public Integer getPrefix ()

Phone prefix as unsigned integer.

Optional field, can be null.

getType

public PhoneType getType ()

Phone type.

serialize

public void serialize (Archive archive)