Package com.twilio.rest.proxy.v1.service
Class Session
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.proxy.v1.service.Session
-
- All Implemented Interfaces:
Serializable
public class Session extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSession.Modestatic classSession.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionCreatorcreator(String pathServiceSid)static SessionDeleterdeleter(String pathServiceSid, String pathSid)booleanequals(Object o)static SessionFetcherfetcher(String pathServiceSid, String pathSid)static SessionfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Session object using the provided ObjectMapper.static SessionfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Session object using the provided ObjectMapper.StringgetAccountSid()StringgetClosedReason()ZonedDateTimegetDateCreated()ZonedDateTimegetDateEnded()ZonedDateTimegetDateExpiry()ZonedDateTimegetDateLastInteraction()ZonedDateTimegetDateStarted()ZonedDateTimegetDateUpdated()Map<String,String>getLinks()Session.ModegetMode()StringgetServiceSid()StringgetSid()Session.StatusgetStatus()IntegergetTtl()StringgetUniqueName()URIgetUrl()inthashCode()static SessionReaderreader(String pathServiceSid)static SessionUpdaterupdater(String pathServiceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static SessionCreator creator(String pathServiceSid)
-
fetcher
public static SessionFetcher fetcher(String pathServiceSid, String pathSid)
-
deleter
public static SessionDeleter deleter(String pathServiceSid, String pathSid)
-
reader
public static SessionReader reader(String pathServiceSid)
-
updater
public static SessionUpdater updater(String pathServiceSid, String pathSid)
-
fromJson
public static Session fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Session object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Session object represented by the provided JSON
-
fromJson
public static Session fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Session object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Session object represented by the provided JSON
-
getSid
public final String getSid()
-
getServiceSid
public final String getServiceSid()
-
getAccountSid
public final String getAccountSid()
-
getDateStarted
public final ZonedDateTime getDateStarted()
-
getDateEnded
public final ZonedDateTime getDateEnded()
-
getDateLastInteraction
public final ZonedDateTime getDateLastInteraction()
-
getDateExpiry
public final ZonedDateTime getDateExpiry()
-
getUniqueName
public final String getUniqueName()
-
getStatus
public final Session.Status getStatus()
-
getClosedReason
public final String getClosedReason()
-
getTtl
public final Integer getTtl()
-
getMode
public final Session.Mode getMode()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-