public class NotificationCreator extends Creator<Notification>
| Constructor and Description |
|---|
NotificationCreator(String pathServiceSid)
Construct a new NotificationCreator.
|
create, createAsync, createAsyncpublic NotificationCreator(String pathServiceSid)
pathServiceSid - The service_sidpublic NotificationCreator setBody(String body)
body - The bodypublic NotificationCreator setPriority(Notification.Priority priority)
priority - The prioritypublic NotificationCreator setTtl(Integer ttl)
ttl - The ttlpublic NotificationCreator setTitle(String title)
title - The titlepublic NotificationCreator setSound(String sound)
sound - The soundpublic NotificationCreator setAction(String action)
action - The actionpublic NotificationCreator setData(Map<String,Object> data)
data - The datapublic NotificationCreator setApn(Map<String,Object> apn)
apn - The apnpublic NotificationCreator setGcm(Map<String,Object> gcm)
gcm - The gcmpublic NotificationCreator setSms(Map<String,Object> sms)
sms - The smspublic NotificationCreator setFacebookMessenger(Map<String,Object> facebookMessenger)
facebookMessenger - The facebook_messengerpublic NotificationCreator setFcm(Map<String,Object> fcm)
fcm - The fcmpublic NotificationCreator setSegment(List<String> segment)
segment - The segmentpublic NotificationCreator setSegment(String segment)
segment - The segmentpublic NotificationCreator setAlexa(Map<String,Object> alexa)
alexa - The alexapublic NotificationCreator setToBinding(List<String> toBinding)
toBinding - The to_bindingpublic NotificationCreator setToBinding(String toBinding)
toBinding - The to_bindingpublic NotificationCreator setIdentity(List<String> identity)
identity - The identitypublic NotificationCreator setIdentity(String identity)
identity - The identitypublic NotificationCreator setTag(List<String> tag)
tag - The tagpublic NotificationCreator setTag(String tag)
tag - The tagpublic Notification create(TwilioRestClient client)
create in class Creator<Notification>client - TwilioRestClient with which to make the requestCopyright © 2016 Twilio, Inc. All Rights Reserved.