public class NotificationCreator extends Creator<Notification>
Constructor and Description |
---|
NotificationCreator(String serviceSid)
Construct a new NotificationCreator.
|
public NotificationCreator(String serviceSid)
serviceSid
- The service_sidpublic 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 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 setFacebookMessenger(Map<String,Object> facebookMessenger)
facebookMessenger
- The facebook_messengerpublic Notification execute(TwilioRestClient client)
execute
in class Creator<Notification>
client
- TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.