com.twilio.sdk.resource.instance
Class Notification

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

public class Notification
extends InstanceResource

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


Constructor Summary
Notification(TwilioRestClient client)
          Instantiates a new notification.
Notification(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new notification.
Notification(TwilioRestClient client, String sid)
          Instantiates a new notification.
 
Method Summary
 boolean delete()
          Delete.
 String getAccountSid()
          Gets the account sid.
 String getApiVersion()
          Gets the api version.
 String getCallSid()
          Gets the call sid.
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 String getErrorCode()
          Gets the error code.
 String getLog()
          Gets the log.
 String getMessageDate()
          Gets the message date.
 String getMessageText()
          Gets the message text.
 String getMoreInfo()
          Gets the more info.
 String getRequestUrl()
          Gets the request url.
 String getRequestVariables()
          Gets the request variables.
 String getResponseBody()
          Gets the response body.
 String getResponseHeaders()
          Gets the response headers.
 String getSid()
          Gets the sid.
 
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

Notification

public Notification(TwilioRestClient client)
Instantiates a new notification.

Parameters:
client - the client

Notification

public Notification(TwilioRestClient client,
                    String sid)
Instantiates a new notification.

Parameters:
client - the client
sid - the sid

Notification

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

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

getAccountSid

public String getAccountSid()
Gets the account sid.

Returns:
the account sid

getCallSid

public String getCallSid()
Gets the call sid.

Returns:
the call sid

getApiVersion

public String getApiVersion()
Gets the api version.

Returns:
the api version

getLog

public String getLog()
Gets the log.

Returns:
the log

getErrorCode

public String getErrorCode()
Gets the error code.

Returns:
the error code

getMoreInfo

public String getMoreInfo()
Gets the more info.

Returns:
the more info

getMessageText

public String getMessageText()
Gets the message text.

Returns:
the message text

getMessageDate

public String getMessageDate()
Gets the message date.

Returns:
the message date

getRequestUrl

public String getRequestUrl()
Gets the request url.

Returns:
the request url

getRequestVariables

public String getRequestVariables()
Gets the request variables.

Returns:
the request variables

getResponseHeaders

public String getResponseHeaders()
Gets the response headers.

Returns:
the response headers

getResponseBody

public String getResponseBody()
Gets the response body.

Returns:
the response body

delete

public boolean delete()
               throws TwilioRestException
Delete.

Returns:
true, if successful
Throws:
TwilioRestException - the twilio rest exception


Copyright © 2011 Twilio, Inc. All Rights Reserved.