Session

public class Session

The session is the value object for the session of a user.

Constructors

Session
Link copied to clipboard
void Session(String accessToken, Date expirationDate)

Functions

fromAPIResponse
Link copied to clipboard
static Session fromAPIResponse(JSONObject apiResponse)
getAccessToken
Link copied to clipboard
String getAccessToken()
The session's access token.
getExpirationDate
Link copied to clipboard
Date getExpirationDate()
The expiration date of the access token.
hasExpired
Link copied to clipboard
boolean hasExpired()
Uses the current locale's time to check whether or not this session has already expired.