public class PhoneProxy extends EntityProxy implements Phone
EntityProxy
for Phone
entities.EntityProxy
,
Phone
,
Entity
Phone.LineType, Phone.Reputation
Constructor and Description |
---|
PhoneProxy(EntityId entityId,
Client client) |
Modifier and Type | Method and Description |
---|---|
Location |
getBestLocation() |
LocationAssociation |
getBestLocationAssociation() |
java.lang.String |
getCarrier() |
java.lang.String |
getCountryCallingCode() |
java.lang.Boolean |
getDoNotCall() |
java.lang.String |
getExtension() |
Phone.LineType |
getLineType() |
java.lang.String |
getPhoneNumber() |
java.lang.Boolean |
getPrepaid() |
Phone.Reputation |
getReputation() |
java.lang.Boolean |
getValid() |
void |
load()
Causes this instance to load its data by contacting
the remote service and requesting information.
|
getAssociations, getBusinessAssociations, getBusinesses, getEntities, getId, getLocationAssociations, getLocations, getName, getPeople, getPersonAssociations, getPhoneAssociations, getPhones, isLoaded, isProxy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssociations, getBusinessAssociations, getBusinesses, getEntities, getId, getLocationAssociations, getLocations, getName, getPeople, getPersonAssociations, getPhoneAssociations, getPhones, isLoaded, isProxy
public void load() throws FindException
Entity
Causes this instance to load its data by contacting the remote service and requesting information. Once loaded, subsequent calls to this method have no effect.
This method is useful for proxy entities found at the edge of the graph.
load
in interface Entity
load
in class EntityProxy
FindException
- If the lookup fails before it is able to generate a Response
object.Entity.isProxy()
,
Entity.isLoaded()
,
EntityProxy
public Phone.LineType getLineType()
getLineType
in interface Phone
public java.lang.String getPhoneNumber()
getPhoneNumber
in interface Phone
public java.lang.String getCountryCallingCode()
getCountryCallingCode
in interface Phone
public java.lang.String getExtension()
getExtension
in interface Phone
public java.lang.String getCarrier()
getCarrier
in interface Phone
public Phone.Reputation getReputation()
getReputation
in interface Phone
public java.lang.Boolean getDoNotCall()
getDoNotCall
in interface Phone
public java.lang.Boolean getPrepaid()
getPrepaid
in interface Phone
public LocationAssociation getBestLocationAssociation()
getBestLocationAssociation
in interface Phone
public Location getBestLocation()
getBestLocation
in interface Phone