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.
|
com.fasterxml.jackson.databind.JsonNode |
getApn()
Returns The The apn.
|
String |
getBody()
Returns The The body.
|
com.fasterxml.jackson.databind.JsonNode |
getData()
Returns The The data.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
com.fasterxml.jackson.databind.JsonNode |
getGcm()
Returns The The gcm.
|
List<String> |
getIdentities()
Returns The The identities.
|
String |
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 String getPriority()
public final Integer getTtl()
public final String getTitle()
public final String getBody()
public final String getSound()
public final String getAction()
public final com.fasterxml.jackson.databind.JsonNode getData()
public final com.fasterxml.jackson.databind.JsonNode getApn()
public final com.fasterxml.jackson.databind.JsonNode getGcm()
Copyright © 2011 Twilio, Inc. All Rights Reserved.