public class Session extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
Session.Status |
| Modifier and Type | Method and Description |
|---|---|
static SessionCreator |
creator(String pathServiceSid)
Create a SessionCreator to execute create.
|
static SessionDeleter |
deleter(String pathServiceSid,
String pathSid)
Create a SessionDeleter to execute delete.
|
boolean |
equals(Object o) |
static SessionFetcher |
fetcher(String pathServiceSid,
String pathSid)
Create a SessionFetcher to execute fetch.
|
static Session |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Session object using the provided
ObjectMapper.
|
static Session |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Session object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The Account Sid..
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this Session was created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this Session was updated.
|
org.joda.time.DateTime |
getEndTime()
Returns The The date this Session was ended.
|
Map<String,String> |
getLinks()
Returns The Nested resource URLs..
|
String |
getServiceSid()
Returns The Service Sid..
|
String |
getSid()
Returns The A string that uniquely identifies this Session..
|
org.joda.time.DateTime |
getStartTime()
Returns The The date this Session was started.
|
Session.Status |
getStatus()
Returns The The Status of this Session.
|
Integer |
getTtl()
Returns The How long will this session stay open, in seconds..
|
String |
getUniqueName()
Returns The A unique, developer assigned name of this Session..
|
URI |
getUrl()
Returns The The URL of this Session..
|
int |
hashCode() |
static SessionReader |
reader(String pathServiceSid)
Create a SessionReader to execute read.
|
String |
toString() |
static SessionUpdater |
updater(String pathServiceSid,
String pathSid)
Create a SessionUpdater to execute update.
|
public static SessionFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid - Service Sid.pathSid - A string that uniquely identifies this Session.public static SessionReader reader(String pathServiceSid)
pathServiceSid - Service Sid.public static SessionCreator creator(String pathServiceSid)
pathServiceSid - Service Sid.public static SessionDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid - Service Sid.pathSid - A string that uniquely identifies this Session.public static SessionUpdater updater(String pathServiceSid, String pathSid)
pathServiceSid - Service Sid.pathSid - A string that uniquely identifies this Session.public static Session fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON StringobjectMapper - Jackson ObjectMapperpublic static Session fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON InputStreamobjectMapper - Jackson ObjectMapperpublic final String getSid()
public final String getServiceSid()
public final String getAccountSid()
public final String getUniqueName()
public final Integer getTtl()
public final Session.Status getStatus()
public final org.joda.time.DateTime getStartTime()
public final org.joda.time.DateTime getEndTime()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2016 Twilio, Inc. All Rights Reserved.