public class Notification extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Notification.Priority |
Modifier and Type | Method and Description |
---|---|
static NotificationCreator |
create(String serviceSid)
Create a NotificationCreator to execute create.
|
boolean |
equals(Object o) |
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 account_sid.
|
String |
getAction()
Returns The The action.
|
Map<String,Object> |
getApn()
Returns The The apn.
|
String |
getBody()
Returns The The body.
|
Map<String,Object> |
getData()
Returns The The data.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
Map<String,Object> |
getFacebookMessenger()
Returns The The facebook_messenger.
|
Map<String,Object> |
getGcm()
Returns The The gcm.
|
List<String> |
getIdentities()
Returns The The identities.
|
Notification.Priority |
getPriority()
Returns The The priority.
|
String |
getServiceSid()
Returns The The service_sid.
|
String |
getSid()
Returns The The sid.
|
String |
getSound()
Returns The The sound.
|
List<String> |
getTags()
Returns The The tags.
|
String |
getTitle()
Returns The The title.
|
Integer |
getTtl()
Returns The The ttl.
|
int |
hashCode() |
String |
toString() |
public static NotificationCreator create(String serviceSid)
serviceSid
- The service_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 getSid()
public final String getAccountSid()
public final String getServiceSid()
public final org.joda.time.DateTime getDateCreated()
public final List<String> getIdentities()
public final Notification.Priority getPriority()
public final Integer getTtl()
public final String getTitle()
public final String getBody()
public final String getSound()
public final String getAction()
public final Map<String,Object> getFacebookMessenger()
Copyright © 2011 Twilio, Inc. All Rights Reserved.