Package com.dropbox.core.v2.team
Class MobileClientSession
java.lang.Object
com.dropbox.core.v2.team.DeviceSession
com.dropbox.core.v2.team.MobileClientSession
Information about linked Dropbox mobile client sessions.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MobileClientPlatformprotected final Stringprotected final Stringprotected final Stringprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionMobileClientSession(String sessionId, String deviceName, MobileClientPlatform clientType) Information about linked Dropbox mobile client sessions.MobileClientSession(String sessionId, String deviceName, MobileClientPlatform clientType, String ipAddress, String country, Date created, Date updated, String clientVersion, String osVersion, String lastCarrier) Information about linked Dropbox mobile client sessions. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe mobile application type.The dropbox client version.The country from which the last activity from this session was made.The time this session was created.The device name.The IP address of the last activity from this session.last carrier used by the device.The hosting OS version.The session id.The time of the last activity from this session.inthashCode()static MobileClientSession.BuildernewBuilder(String sessionId, String deviceName, MobileClientPlatform clientType) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.Methods inherited from class com.dropbox.core.v2.team.DeviceSession
newBuilder
-
Field Details
-
deviceName
-
clientType
-
clientVersion
-
osVersion
-
lastCarrier
-
-
Constructor Details
-
MobileClientSession
public MobileClientSession(@Nonnull String sessionId, @Nonnull String deviceName, @Nonnull MobileClientPlatform clientType, @Nullable String ipAddress, @Nullable String country, @Nullable Date created, @Nullable Date updated, @Nullable String clientVersion, @Nullable String osVersion, @Nullable String lastCarrier) Information about linked Dropbox mobile client sessions.Use
newBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.team.MobileClientPlatform)to create instances of this class without specifying values for all optional fields.- Parameters:
sessionId- The session id. Must not benull.deviceName- The device name. Must not benull.clientType- The mobile application type. 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.clientVersion- The dropbox client version.osVersion- The hosting OS version.lastCarrier- last carrier used by the device.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
MobileClientSession
public MobileClientSession(@Nonnull String sessionId, @Nonnull String deviceName, @Nonnull MobileClientPlatform clientType) Information about linked Dropbox mobile client sessions.The default values for unset fields will be used.
- Parameters:
sessionId- The session id. Must not benull.deviceName- The device name. Must not benull.clientType- The mobile application type. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getSessionId
The session id.- Overrides:
getSessionIdin classDeviceSession- Returns:
- value for this field, never
null.
-
getDeviceName
The device name.- Returns:
- value for this field, never
null.
-
getClientType
The mobile application type.- Returns:
- value for this field, never
null.
-
getIpAddress
The IP address of the last activity from this session.- Overrides:
getIpAddressin classDeviceSession- Returns:
- value for this field, or
nullif not present.
-
getCountry
The country from which the last activity from this session was made.- Overrides:
getCountryin classDeviceSession- Returns:
- value for this field, or
nullif not present.
-
getCreated
The time this session was created.- Overrides:
getCreatedin classDeviceSession- Returns:
- value for this field, or
nullif not present.
-
getUpdated
The time of the last activity from this session.- Overrides:
getUpdatedin classDeviceSession- Returns:
- value for this field, or
nullif not present.
-
getClientVersion
The dropbox client version.- Returns:
- value for this field, or
nullif not present.
-
getOsVersion
The hosting OS version.- Returns:
- value for this field, or
nullif not present.
-
getLastCarrier
last carrier used by the device.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static MobileClientSession.Builder newBuilder(String sessionId, String deviceName, MobileClientPlatform clientType) Returns a new builder for creating an instance of this class.- Parameters:
sessionId- The session id. Must not benull.deviceName- The device name. Must not benull.clientType- The mobile application type. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classDeviceSession
-
equals
- Overrides:
equalsin classDeviceSession
-
toString
- Overrides:
toStringin classDeviceSession
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classDeviceSession- Returns:
- Formatted, multiline String representation of this object
-