com.telapi.api.domain
Class Notification
java.lang.Object
com.telapi.api.domain.BaseTelapiObject
com.telapi.api.domain.Notification
public class Notification
- extends BaseTelapiObject
Notifications that TelAPI sends to users regarding their account and TelAPI
phone numbers activity.
| 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 |
Notification
public Notification()
getCallSid
public String getCallSid()
- Returns:
- An alphanumeric string used for identification of the call that the notification occurred during. Since notifications don't have to necessarily occur during calls, this property could be empty.
setCallSid
public void setCallSid(String callSid)
getLog
public LogLevel getLog()
- Returns:
- Specifies the notification log level: INFO, WARNING or ERROR.
setLog
public void setLog(LogLevel log)
getErrorCode
public String getErrorCode()
- Returns:
- Identifies the specific error type. For more information on error codes see the Error Dictionary.
setErrorCode
public void setErrorCode(String errorCode)
getMoreInfo
public String getMoreInfo()
- Returns:
- URL leading to our error dictionary for more information on the error.
setMoreInfo
public void setMoreInfo(String moreInfo)
getMessageText
public String getMessageText()
- Returns:
- Text of the notification message.
setMessageText
public void setMessageText(String messageText)
getMessageDate
public Date getMessageDate()
- Returns:
- The date the TelAPI account received the actual notification. May be a bit different from DateCreated due to buffering.
setMessageDate
public void setMessageDate(Date messageDate)
getResponseBody
public String getResponseBody()
- Returns:
- The HTTP body returned by your server when the notification occurred.
setResponseBody
public void setResponseBody(String responseBody)
getRequestMethod
public HttpMethod getRequestMethod()
- Returns:
- The method used to request RequestUrl when the notification was generated.
setRequestMethod
public void setRequestMethod(HttpMethod requestMethod)
getRequestUrl
public String getRequestUrl()
- Returns:
- The URL being requested when notification was generated.
setRequestUrl
public void setRequestUrl(String requestUrl)
getRequestVariables
public String getRequestVariables()
- Returns:
- The variables sent with the HTTP request that generated the notification.
setRequestVariables
public void setRequestVariables(String requestVariables)
getResponseHeaders
public String getResponseHeaders()
- Returns:
- HTTP headers returned by your server when the notification occurred.
setResponseHeaders
public void setResponseHeaders(String responseHeaders)
Copyright © 2012. All Rights Reserved.