
public final class PhoneNumber extends Object
The following properties are available for phone numbers from the US and Canada:
| Property | Description |
|---|---|
| FriendlyName | A nicely-formatted version of the phone number. |
| PhoneNumber | The phone number, in E.164 (i.e. "+1") format. |
| Lata | The LATA of this phone number. |
| RateCenter | The rate center of this phone number. |
| Latitude | The latitude coordinate of this phone number. |
| Longitude | The longitude coordinate of this phone number. |
| Region | The two-letter state or province abbreviation of this phone number. |
| PostalCode | The postal (zip) code of this phone number. |
| IsoCountry | The ISO country code of this phone number. |
| Capabilities | This is a set of boolean properties that indicate whether a phone number can receive calls or messages.
Possible capabilities are Voice, SMS, and
MMS with each having a value of either true or
false. |
The following properties are available for phone numbers outside the US and Canada:
| Property | Description |
|---|---|
| FriendlyName | A nicely-formatted version of the phone number. |
| PhoneNumber | The phone number, in E.164 (i.e. "+44") format. |
| IsoCountry | The ISO country code of this phone number. |
| Capabilities | This is a set of boolean properties that indicate whether a phone number can receive calls or messages.
Possible capabilities are Voice, SMS, and
MMS with each having a value of either true or
false. |
| Constructor and Description |
|---|
PhoneNumber(String friendlyName,
String phoneNumber,
Integer lata,
String rateCenter,
Double latitude,
Double longitude,
String region,
Integer postalCode,
String isoCountry) |
PhoneNumber(String friendlyName,
String phoneNumber,
Integer lata,
String rateCenter,
Double latitude,
Double longitude,
String region,
Integer postalCode,
String isoCountry,
Boolean voiceCapable,
Boolean smsCapable,
Boolean mmsCapable,
Boolean faxCapable,
Boolean ussdCapable) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFriendlyName() |
String |
getIsoCountry() |
Integer |
getLata() |
Double |
getLatitude() |
Double |
getLongitude() |
String |
getPhoneNumber() |
Integer |
getPostalCode() |
String |
getRateCenter() |
String |
getRegion() |
Boolean |
isFaxCapable() |
Boolean |
isMmsCapable() |
Boolean |
isSmsCapable() |
Boolean |
isUssdCapable() |
Boolean |
isVoiceCapable() |
void |
setFaxCapable(Boolean faxCapable) |
void |
setFriendlyName(String friendlyName) |
void |
setIsoCountry(String isoCountry) |
void |
setLata(Integer lata) |
void |
setLatitude(Double latitude) |
void |
setLongitude(Double longitude) |
void |
setMmsCapable(Boolean mmsCapable) |
void |
setPhoneNumber(String phoneNumber) |
void |
setPostalCode(Integer postalCode) |
void |
setRateCenter(String rateCenter) |
void |
setRegion(String region) |
void |
setSmsCapable(Boolean smsCapable) |
void |
setUssdCapable(Boolean ussdCapable) |
void |
setVoiceCapable(Boolean voiceCapable) |
public PhoneNumber(String friendlyName, String phoneNumber, Integer lata, String rateCenter, Double latitude, Double longitude, String region, Integer postalCode, String isoCountry)
public String getFriendlyName()
public void setFriendlyName(String friendlyName)
friendlyName - the friendlyName to setpublic String getPhoneNumber()
public void setPhoneNumber(String phoneNumber)
phoneNumber - the phoneNumber to setpublic Integer getLata()
public void setLata(Integer lata)
lata - the lata to setpublic String getRateCenter()
public void setRateCenter(String rateCenter)
rateCenter - the rateCenter to setpublic Double getLatitude()
public void setLatitude(Double latitude)
latitude - the latitude to setpublic Double getLongitude()
public void setLongitude(Double longitude)
longitude - the longitude to setpublic String getRegion()
public void setRegion(String region)
region - the region to setpublic Integer getPostalCode()
public void setPostalCode(Integer postalCode)
postalCode - the postalCode to setpublic String getIsoCountry()
public void setIsoCountry(String isoCountry)
isoCountry - the isoCountry to setpublic Boolean isVoiceCapable()
public void setVoiceCapable(Boolean voiceCapable)
voiceCapable - the voiceCapable to setpublic Boolean isSmsCapable()
public void setSmsCapable(Boolean smsCapable)
smsCapable - the smsCapable to setpublic Boolean isMmsCapable()
public void setMmsCapable(Boolean mmsCapable)
mmsCapable - the mmsCapable to setpublic Boolean isFaxCapable()
public void setFaxCapable(Boolean faxCapable)
faxCapable - the faxCapable to setpublic Boolean isUssdCapable()
public void setUssdCapable(Boolean ussdCapable)
ussdCapable - the ussdCapable to setCopyright © 2015. All Rights Reserved.