public class Notification extends SidResource
Modifier and Type | Method and Description |
---|---|
static NotificationDeleter |
delete(String accountSid,
String sid)
Create a NotificationDeleter to execute delete.
|
boolean |
equals(Object o) |
static NotificationFetcher |
fetch(String accountSid,
String sid)
Create a NotificationFetcher to execute fetch.
|
static Notification |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Notification object using the provided
ObjectMapper.
|
static Notification |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Notification object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The The unique sid that identifies this account.
|
String |
getApiVersion()
Returns The The version of the Twilio API in use.
|
String |
getCallSid()
Returns The The string that uniquely identifies the call.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this resource was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this resource was last updated.
|
String |
getErrorCode()
Returns The A unique error code corresponding to the notification.
|
String |
getLog()
Returns The An integer log level.
|
org.joda.time.DateTime |
getMessageDate()
Returns The The date the notification was generated.
|
String |
getMessageText()
Returns The The text of the notification..
|
URI |
getMoreInfo()
Returns The A URL for more information about the error code.
|
HttpMethod |
getRequestMethod()
Returns The HTTP method used with the request url.
|
URI |
getRequestUrl()
Returns The URL of the resource that generated the notification.
|
String |
getRequestVariables()
Returns The Twilio-generated HTTP variables sent to the server.
|
String |
getResponseBody()
Returns The The HTTP body returned by your server..
|
String |
getResponseHeaders()
Returns The The HTTP headers returned by your server..
|
String |
getSid()
Returns The A string that uniquely identifies this notification.
|
String |
getUri()
Returns The The URI for this resource.
|
int |
hashCode() |
static NotificationReader |
read(String accountSid)
Create a NotificationReader to execute read.
|
String |
toString() |
public static NotificationFetcher fetch(String accountSid, String sid)
accountSid
- The account_sidsid
- Fetch by unique notification Sidpublic static NotificationDeleter delete(String accountSid, String sid)
accountSid
- The account_sidsid
- Delete by unique notification Sidpublic static NotificationReader read(String accountSid)
accountSid
- The account_sidpublic static Notification fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Notification fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getApiVersion()
public final String getCallSid()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getErrorCode()
public final String getLog()
public final org.joda.time.DateTime getMessageDate()
public final String getMessageText()
public final URI getMoreInfo()
public final HttpMethod getRequestMethod()
public final URI getRequestUrl()
public final String getRequestVariables()
public final String getResponseBody()
public final String getResponseHeaders()
public final String getSid()
getSid
in class SidResource
public final String getUri()
Copyright © 2011 Twilio, Inc. All Rights Reserved.