com.telapi.api.domain
Class IncomingPhoneNumber

java.lang.Object
  extended by com.telapi.api.domain.BaseTelapiObject
      extended by com.telapi.api.domain.BaseTelapiObjectWithMethods
          extended by com.telapi.api.domain.IncomingPhoneNumber

public class IncomingPhoneNumber
extends BaseTelapiObjectWithMethods

TelAPI phone numbers associated with an account are represented with the IncomingPhoneNumber resource.


Constructor Summary
IncomingPhoneNumber()
           
 
Method Summary
 PhoneNumberCapabilities getCapabilities()
           
 String getFriendlyName()
           
 String getPhoneNumber()
           
 String getSmsApplicationSid()
           
 PhoneNumberType getType()
           
 String getVoiceApplicationSid()
           
 void setCapabilities(PhoneNumberCapabilities capabilities)
           
 void setFriendlyName(String friendlyName)
           
 void setPhoneNumber(String phoneNumber)
           
 void setSmsApplicationSid(String smsApplicationSid)
           
 void setType(PhoneNumberType type)
           
 void setVoiceApplicationSid(String voiceApplicationSid)
           
 
Methods inherited from class com.telapi.api.domain.BaseTelapiObjectWithMethods
getHangupCallback, getHangupCallbackMethod, getHeartbeatMethod, getHeartbeatUrl, getSmsFallbackMethod, getSmsFallbackUrl, getSmsMethod, getSmsStatusCallbackMethod, getSmsStatusCallbackUrl, getSmsUrl, getStatusCallback, getStatusCallbackMethod, getVoiceCallerIdLookup, getVoiceFallbackMethod, getVoiceFallbackUrl, getVoiceMethod, getVoiceUrl, setHangupCallback, setHangupCallbackMethod, setHeartbeatMethod, setHeartbeatUrl, setSmsFallbackMethod, setSmsFallbackUrl, setSmsMethod, setSmsStatusCallbackMethod, setSmsStatusCallbackUrl, setSmsUrl, setStatusCallback, setStatusCallbackMethod, setVoiceCallerIdLookup, setVoiceFallbackMethod, setVoiceFallbackUrl, setVoiceMethod, setVoiceUrl
 
Methods inherited from class com.telapi.api.domain.BaseTelapiObject
getAccountSid, getApiVersion, getDateCreated, getDateUpdated, getSid, getUri, setAccountSid, setApiVersion, setDateCreated, setDateUpdated, setSid, setUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncomingPhoneNumber

public IncomingPhoneNumber()
Method Detail

getFriendlyName

public String getFriendlyName()
Returns:
Domestic format version of the TelAPI phone number. (e.g. 1234567890 to (123)-456-7890)

setFriendlyName

public void setFriendlyName(String friendlyName)

getPhoneNumber

public String getPhoneNumber()
Returns:
The E.164 format number of each incoming number.

setPhoneNumber

public void setPhoneNumber(String phoneNumber)

getType

public PhoneNumberType getType()
Returns:
The type of TelAPI number. (local, international, etc.)

setType

public void setType(PhoneNumberType type)

getVoiceApplicationSid

public String getVoiceApplicationSid()
Returns:

setVoiceApplicationSid

public void setVoiceApplicationSid(String voiceApplicationSid)

getSmsApplicationSid

public String getSmsApplicationSid()
Returns:

setSmsApplicationSid

public void setSmsApplicationSid(String smsApplicationSid)

getCapabilities

public PhoneNumberCapabilities getCapabilities()
Returns:
The features available with this incoming phone number. The voice and sms properties are either True or False depending on what the number is capable of.

setCapabilities

public void setCapabilities(PhoneNumberCapabilities capabilities)


Copyright © 2012. All Rights Reserved.