| Constructor and Description |
|---|
SessionCreator(String pathServiceSid)
Construct a new SessionCreator.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
SessionCreator |
setDateExpiry(org.joda.time.DateTime dateExpiry)
The date that this Session was expiry, given in ISO 8601 format..
|
SessionCreator |
setMode(Session.Mode mode)
The Mode of this Session.
|
SessionCreator |
setParticipants(List<Map<String,Object>> participants)
A list of phone numbers to add to this Session..
|
SessionCreator |
setParticipants(Map<String,Object> participants)
A list of phone numbers to add to this Session..
|
SessionCreator |
setStatus(Session.Status status)
The Status of this Session.
|
SessionCreator |
setTtl(Integer ttl)
The Time to Live for a Session, in seconds..
|
SessionCreator |
setUniqueName(String uniqueName)
Provides a unique and addressable name to be assigned to this Session,
assigned by the developer, to be optionally used in addition to SID..
|
create, createAsync, createAsyncpublic SessionCreator(String pathServiceSid)
pathServiceSid - Service Sid.public SessionCreator setUniqueName(String uniqueName)
uniqueName - A unique, developer assigned name of this Session.public SessionCreator setDateExpiry(org.joda.time.DateTime dateExpiry)
dateExpiry - The date this Session was expirypublic SessionCreator setTtl(Integer ttl)
ttl - TTL for a Session, in seconds.public SessionCreator setMode(Session.Mode mode)
mode - The Mode of this Sessionpublic SessionCreator setStatus(Session.Status status)
status - The Status of this Sessionpublic SessionCreator setParticipants(List<Map<String,Object>> participants)
participants - A list of phone numbers to add to this Session.public SessionCreator setParticipants(Map<String,Object> participants)
participants - A list of phone numbers to add to this Session.public Session create(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.