com.twilio.sdk.resource.instance
Class ShortCode

java.lang.Object
  extended by com.twilio.sdk.resource.Resource
      extended by com.twilio.sdk.resource.InstanceResource
          extended by com.twilio.sdk.resource.instance.ShortCode

public class ShortCode
extends InstanceResource

The Class IncomingPhoneNumber. For more information see https://www.twilio.com/docs/api/rest/shortcodes


Constructor Summary
ShortCode(TwilioRestClient client)
          Instantiates a new incoming phone number.
ShortCode(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new incoming phone number.
ShortCode(TwilioRestClient client, String sid)
          Instantiates a new incoming phone number.
 
Method Summary
 String getAccountSid()
          Gets the account sid.
 String getApiVersion()
          Gets the api version.
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 String getFriendlyName()
          Gets the friendly name.
 String getShortCode()
          Gets the short code number.
 String getSid()
          Gets the sid.
 String getSmsApplicationSid()
          Gets the sms application sid.
 String getSmsFallbackMethod()
          Gets the sms fallback method.
 String getSmsFallbackUrl()
          Gets the sms fallback url.
 String getSmsMethod()
          Gets the sms method.
 String getSmsUrl()
          Gets the sms url.
 
Methods inherited from class com.twilio.sdk.resource.InstanceResource
getObject, getProperty, update, update
 
Methods inherited from class com.twilio.sdk.resource.Resource
setRequestAccountSid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortCode

public ShortCode(TwilioRestClient client)
Instantiates a new incoming phone number.

Parameters:
client - the client

ShortCode

public ShortCode(TwilioRestClient client,
                 String sid)
Instantiates a new incoming phone number.

Parameters:
client - the client
sid - the sid

ShortCode

public ShortCode(TwilioRestClient client,
                 Map<String,Object> properties)
Instantiates a new incoming phone number.

Parameters:
client - the client
properties - the properties
Method Detail

getSid

public String getSid()
Gets the sid.

Returns:
the sid

getDateCreated

public Date getDateCreated()
Gets the date created.

Returns:
the date created

getDateUpdated

public Date getDateUpdated()
Gets the date updated.

Returns:
the date updated

getFriendlyName

public String getFriendlyName()
Gets the friendly name.

Returns:
the friendly name

getAccountSid

public String getAccountSid()
Gets the account sid.

Returns:
the account sid

getShortCode

public String getShortCode()
Gets the short code number.

Returns:
the short code number

getSmsApplicationSid

public String getSmsApplicationSid()
Gets the sms application sid.

Returns:
the sms application sid

getApiVersion

public String getApiVersion()
Gets the api version.

Returns:
the api version

getSmsUrl

public String getSmsUrl()
Gets the sms url.

Returns:
the sms url

getSmsMethod

public String getSmsMethod()
Gets the sms method.

Returns:
the sms method

getSmsFallbackUrl

public String getSmsFallbackUrl()
Gets the sms fallback url.

Returns:
the sms fallback url

getSmsFallbackMethod

public String getSmsFallbackMethod()
Gets the sms fallback method.

Returns:
the sms fallback method


Copyright © 2011 Twilio, Inc. All Rights Reserved.