public class Notification extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static NotificationFetcher |
fetcher(String pathChatServiceSid)
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 unique ID of the Account responsible for this configuration..
|
Map<String,Object> |
getAddedToConversation()
Returns The Push Notification configuration for being added to a
Conversation..
|
String |
getChatServiceSid()
Returns The SID of the Conversation Service that the Configuration applies
to..
|
Boolean |
getLogEnabled()
Returns Weather the notification logging is enabled..
|
Map<String,Object> |
getNewMessage()
Returns The Push Notification configuration for New Messages..
|
Map<String,Object> |
getRemovedFromConversation()
Returns The Push Notification configuration for being removed from a
Conversation..
|
URI |
getUrl()
Returns An absolute URL for this configuration..
|
int |
hashCode() |
static NotificationUpdater |
updater(String pathChatServiceSid)
Create a NotificationUpdater to execute update.
|
public static NotificationUpdater updater(String pathChatServiceSid)
pathChatServiceSid
- The SID of the Conversation Service that the
Configuration applies to.public static NotificationFetcher fetcher(String pathChatServiceSid)
pathChatServiceSid
- The SID of the Conversation Service that the
Configuration applies to.public 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 getChatServiceSid()
public final Map<String,Object> getNewMessage()
public final Map<String,Object> getAddedToConversation()
public final Map<String,Object> getRemovedFromConversation()
public final Boolean getLogEnabled()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.