public class Session extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
Session.Mode |
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..
|
String |
getClosedReason()
Returns The Reason Session ended..
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date this Session was created.
|
org.joda.time.DateTime |
getDateEnded()
Returns The The date this Session was ended.
|
org.joda.time.DateTime |
getDateExpiry()
Returns The The date this Session was expiry.
|
org.joda.time.DateTime |
getDateLastInteraction()
Returns The The date this Session was interaction.
|
org.joda.time.DateTime |
getDateStarted()
Returns The The date this Session was started.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date this Session was updated.
|
Map<String,String> |
getLinks()
Returns The Nested resource URLs..
|
Session.Mode |
getMode()
Returns The The Mode of this Session.
|
String |
getServiceSid()
Returns The Service Sid..
|
String |
getSid()
Returns The A string that uniquely identifies this Session..
|
Session.Status |
getStatus()
Returns The The Status of this Session.
|
Integer |
getTtl()
Returns The TTL for a Session, in seconds..
|
String |
getUniqueName()
Returns The A unique, developer assigned name of this Session..
|
URI |
getUrl()
Returns The The URL of this resource..
|
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 org.joda.time.DateTime getDateStarted()
public final org.joda.time.DateTime getDateEnded()
public final org.joda.time.DateTime getDateLastInteraction()
public final org.joda.time.DateTime getDateExpiry()
public final String getUniqueName()
public final Session.Status getStatus()
public final String getClosedReason()
public final Integer getTtl()
public final Session.Mode getMode()
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.