public class NotificationUpdater extends Updater<Notification>
Constructor and Description |
---|
NotificationUpdater(String pathChatServiceSid)
Construct a new NotificationUpdater.
|
Modifier and Type | Method and Description |
---|---|
NotificationUpdater |
setAddedToConversationEnabled(Boolean addedToConversationEnabled)
Whether to send a notification when a participant is added to a conversation.
|
NotificationUpdater |
setAddedToConversationSound(String addedToConversationSound)
The name of the sound to play when a participant is added to a conversation
and `added_to_conversation.enabled` is `true`..
|
NotificationUpdater |
setAddedToConversationTemplate(String addedToConversationTemplate)
The template to use to create the notification text displayed when a
participant is added to a conversation and `added_to_conversation.enabled` is
`true`..
|
NotificationUpdater |
setLogEnabled(Boolean logEnabled)
Weather the notification logging is enabled..
|
NotificationUpdater |
setNewMessageBadgeCountEnabled(Boolean newMessageBadgeCountEnabled)
Whether the new message badge is enabled.
|
NotificationUpdater |
setNewMessageEnabled(Boolean newMessageEnabled)
Whether to send a notification when a new message is added to a conversation.
|
NotificationUpdater |
setNewMessageSound(String newMessageSound)
The name of the sound to play when a new message is added to a conversation
and `new_message.enabled` is `true`..
|
NotificationUpdater |
setNewMessageTemplate(String newMessageTemplate)
The template to use to create the notification text displayed when a new
message is added to a conversation and `new_message.enabled` is `true`..
|
NotificationUpdater |
setNewMessageWithMediaEnabled(Boolean newMessageWithMediaEnabled)
Whether to send a notification when a new message with media/file attachments
is added to a conversation.
|
NotificationUpdater |
setNewMessageWithMediaTemplate(String newMessageWithMediaTemplate)
The template to use to create the notification text displayed when a new
message with media/file attachments is added to a conversation and
`new_message.attachments.enabled` is `true`..
|
NotificationUpdater |
setRemovedFromConversationEnabled(Boolean removedFromConversationEnabled)
Whether to send a notification to a user when they are removed from a
conversation.
|
NotificationUpdater |
setRemovedFromConversationSound(String removedFromConversationSound)
The name of the sound to play to a user when they are removed from a
conversation and `removed_from_conversation.enabled` is `true`..
|
NotificationUpdater |
setRemovedFromConversationTemplate(String removedFromConversationTemplate)
The template to use to create the notification text displayed to a user when
they are removed from a conversation and `removed_from_conversation.enabled`
is `true`..
|
Notification |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public NotificationUpdater(String pathChatServiceSid)
pathChatServiceSid
- The SID of the Conversation Service that the
Configuration applies to.public NotificationUpdater setLogEnabled(Boolean logEnabled)
logEnabled
- Weather the notification logging is enabled.public NotificationUpdater setNewMessageEnabled(Boolean newMessageEnabled)
newMessageEnabled
- Whether to send a notification when a new message
is added to a conversation.public NotificationUpdater setNewMessageTemplate(String newMessageTemplate)
newMessageTemplate
- The template to use to create the notification
text displayed when a new message is added to a
conversation.public NotificationUpdater setNewMessageSound(String newMessageSound)
newMessageSound
- The name of the sound to play when a new message is
added to a conversation.public NotificationUpdater setNewMessageBadgeCountEnabled(Boolean newMessageBadgeCountEnabled)
newMessageBadgeCountEnabled
- Whether the new message badge is enabled.public NotificationUpdater setAddedToConversationEnabled(Boolean addedToConversationEnabled)
addedToConversationEnabled
- Whether to send a notification when a
participant is added to a conversation.public NotificationUpdater setAddedToConversationTemplate(String addedToConversationTemplate)
addedToConversationTemplate
- The template to use to create the
notification text displayed when a
participant is added to a conversation.public NotificationUpdater setAddedToConversationSound(String addedToConversationSound)
addedToConversationSound
- The name of the sound to play when a
participant is added to a conversation.public NotificationUpdater setRemovedFromConversationEnabled(Boolean removedFromConversationEnabled)
removedFromConversationEnabled
- Whether to send a notification to a
user when they are removed from a
conversation.public NotificationUpdater setRemovedFromConversationTemplate(String removedFromConversationTemplate)
removedFromConversationTemplate
- The template to use to create the
notification text displayed to a user
when they are removed.public NotificationUpdater setRemovedFromConversationSound(String removedFromConversationSound)
removedFromConversationSound
- The name of the sound to play to a user
when they are removed from a
conversation.public NotificationUpdater setNewMessageWithMediaEnabled(Boolean newMessageWithMediaEnabled)
newMessageWithMediaEnabled
- Whether to send a notification when a new
message with media/file attachments is
added to a conversation.public NotificationUpdater setNewMessageWithMediaTemplate(String newMessageWithMediaTemplate)
newMessageWithMediaTemplate
- The template to use to create the
notification text displayed when a new
message with media/file attachments is
added to a conversation.public Notification update(TwilioRestClient client)
update
in class Updater<Notification>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.