com.twilio.sdk.resource.instance
Class Application

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

public class Application
extends InstanceResource

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


Constructor Summary
Application(TwilioRestClient client)
          Instantiates a new application.
Application(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new application.
Application(TwilioRestClient client, String sid)
          Instantiates a new application.
 
Method Summary
 boolean delete()
          Delete this Application.
 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 getSid()
          Gets the sid.
 String getSmsFallbackMethod()
          Gets the sms fallback method.
 String getSmsFallbackUrl()
          Gets the sms fallback url.
 String getSmsMethod()
          Gets the sms method.
 String getSmsStatusCallback()
          Gets the sms status callback.
 String getSmsUrl()
          Gets the sms url.
 String getStatus()
          Gets the status.
 String getStatusCallback()
          Gets the status callback.
 String getStatusCallbackMethod()
          Gets the status callback method.
 String getVoiceCallerIdLookup()
          Gets the voice caller id lookup.
 String getVoiceFallbackMethod()
          Gets the voice fallback method.
 String getVoiceFallbackUrl()
          Gets the voice fallback url.
 String getVoiceMethod()
          Gets the voice method.
 String getVoiceUrl()
          Gets the voice 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

Application

public Application(TwilioRestClient client)
Instantiates a new application.

Parameters:
client - the client

Application

public Application(TwilioRestClient client,
                   String sid)
Instantiates a new application.

Parameters:
client - the client
sid - the sid

Application

public Application(TwilioRestClient client,
                   Map<String,Object> properties)
Instantiates a new application.

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

getSid

public String getSid()
Gets the sid.

Returns:
the sid

getFriendlyName

public String getFriendlyName()
Gets the friendly name.

Returns:
the friendly name

getStatus

public String getStatus()
Gets the status.

Returns:
the status

getDateCreated

public Date getDateCreated()
Gets the date created.

Returns:
the date created

getDateUpdated

public Date getDateUpdated()
Gets the date updated.

Returns:
the date updated

getAccountSid

public String getAccountSid()
Gets the account sid.

Returns:
the account sid

getApiVersion

public String getApiVersion()
Gets the api version.

Returns:
the api version

getVoiceUrl

public String getVoiceUrl()
Gets the voice url.

Returns:
the voice url

getVoiceMethod

public String getVoiceMethod()
Gets the voice method.

Returns:
the voice method

getVoiceFallbackUrl

public String getVoiceFallbackUrl()
Gets the voice fallback url.

Returns:
the voice fallback url

getVoiceFallbackMethod

public String getVoiceFallbackMethod()
Gets the voice fallback method.

Returns:
the voice fallback method

getStatusCallback

public String getStatusCallback()
Gets the status callback.

Returns:
the status callback

getStatusCallbackMethod

public String getStatusCallbackMethod()
Gets the status callback method.

Returns:
the status callback method

getVoiceCallerIdLookup

public String getVoiceCallerIdLookup()
Gets the voice caller id lookup.

Returns:
the voice caller id lookup

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

getSmsStatusCallback

public String getSmsStatusCallback()
Gets the sms status callback.

Returns:
the sms status callback

delete

public boolean delete()
               throws TwilioRestException
Delete this Application. This will remove it from this Account, only if it is not currently linked to an IncomingPhoneNumber.

Returns:
true, if successful
Throws:
TwilioRestException - if there is an error in the request


Copyright © 2011 Twilio, Inc. All Rights Reserved.