Package com.dropbox.core.v2.team
Class DeviceSession
java.lang.Object
com.dropbox.core.v2.team.DeviceSession
- Direct Known Subclasses:
ActiveWebSession,DesktopClientSession,MobileClientSession
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeviceSession(String sessionId) NoneUsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe country from which the last activity from this session was made.The time this session was created.The IP address of the last activity from this session.The session id.The time of the last activity from this session.inthashCode()static DeviceSession.BuildernewBuilder(String sessionId) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
sessionId
-
ipAddress
-
country
-
created
-
updated
-
-
Constructor Details
-
DeviceSession
public DeviceSession(@Nonnull String sessionId, @Nullable String ipAddress, @Nullable String country, @Nullable Date created, @Nullable Date updated) UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
sessionId- The session id. Must not benull.ipAddress- The IP address of the last activity from this session.country- The country from which the last activity from this session was made.created- The time this session was created.updated- The time of the last activity from this session.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
DeviceSession
NoneThe default values for unset fields will be used.
- Parameters:
sessionId- The session id. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getSessionId
The session id.- Returns:
- value for this field, never
null.
-
getIpAddress
The IP address of the last activity from this session.- Returns:
- value for this field, or
nullif not present.
-
getCountry
The country from which the last activity from this session was made.- Returns:
- value for this field, or
nullif not present.
-
getCreated
The time this session was created.- Returns:
- value for this field, or
nullif not present.
-
getUpdated
The time of the last activity from this session.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
sessionId- The session id. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-