public class NotificationCreator extends Creator<Notification>
Constructor and Description |
---|
NotificationCreator(String pathServiceSid)
Construct a new NotificationCreator.
|
create, createAsync, createAsync
public 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(String data)
data
- The datapublic NotificationCreator setApn(String apn)
apn
- The apnpublic NotificationCreator setGcm(String gcm)
gcm
- The gcmpublic NotificationCreator setSms(String sms)
sms
- The smspublic NotificationCreator setFacebookMessenger(Map<String,Object> facebookMessenger)
facebookMessenger
- The facebook_messengerpublic NotificationCreator setFcm(String fcm)
fcm
- The fcmpublic NotificationCreator setSegment(List<String> segment)
segment
- The segmentpublic NotificationCreator setSegment(String segment)
segment
- The segmentpublic 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.