public class NotificationCreator extends Creator<Notification>
Constructor and Description |
---|
NotificationCreator(String serviceSid)
Construct a new NotificationCreator.
|
Modifier and Type | Method and Description |
---|---|
Notification |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
NotificationCreator |
setAction(String action)
The action.
|
NotificationCreator |
setApn(String apn)
The apn.
|
NotificationCreator |
setBody(String body)
The body.
|
NotificationCreator |
setData(String data)
The data.
|
NotificationCreator |
setGcm(String gcm)
The gcm.
|
NotificationCreator |
setIdentity(List<String> identity)
The identity.
|
NotificationCreator |
setIdentity(String identity)
The identity.
|
NotificationCreator |
setPriority(String priority)
The priority.
|
NotificationCreator |
setSound(String sound)
The sound.
|
NotificationCreator |
setTag(List<String> tag)
The tag.
|
NotificationCreator |
setTag(String tag)
The tag.
|
NotificationCreator |
setTitle(String title)
The title.
|
NotificationCreator |
setTtl(Integer ttl)
The ttl.
|
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(String 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 Notification execute(TwilioRestClient client)
execute
in class Creator<Notification>
client
- TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.