Package com.dropbox.core.v2.teamlog
Class MobileDeviceSessionLogInfo
java.lang.Object
com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
com.dropbox.core.v2.teamlog.MobileDeviceSessionLogInfo
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 Stringprotected final MobileSessionLogInfoFields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
created, ipAddress, updated -
Constructor Summary
ConstructorsConstructorDescriptionMobileDeviceSessionLogInfo(String deviceName, MobileClientPlatform clientType) Information about linked Dropbox mobile client sessionsMobileDeviceSessionLogInfo(String deviceName, MobileClientPlatform clientType, String ipAddress, Date created, Date updated, MobileSessionLogInfo sessionInfo, 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 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.Mobile session unique id.The time of the last activity from this session.inthashCode()newBuilder(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.teamlog.DeviceSessionLogInfo
newBuilder
-
Field Details
-
sessionInfo
-
deviceName
-
clientType
-
clientVersion
-
osVersion
-
lastCarrier
-
-
Constructor Details
-
MobileDeviceSessionLogInfo
public MobileDeviceSessionLogInfo(@Nonnull String deviceName, @Nonnull MobileClientPlatform clientType, @Nullable String ipAddress, @Nullable Date created, @Nullable Date updated, @Nullable MobileSessionLogInfo sessionInfo, @Nullable String clientVersion, @Nullable String osVersion, @Nullable String lastCarrier) Information about linked Dropbox mobile client sessionsUse
newBuilder(java.lang.String,com.dropbox.core.v2.team.MobileClientPlatform)to create instances of this class without specifying values for all optional fields.- Parameters:
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.created- The time this session was created.updated- The time of the last activity from this session.sessionInfo- Mobile session unique id.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.
-
MobileDeviceSessionLogInfo
public MobileDeviceSessionLogInfo(@Nonnull String deviceName, @Nonnull MobileClientPlatform clientType) Information about linked Dropbox mobile client sessionsThe default values for unset fields will be used.
- Parameters:
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
-
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 classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getCreated
The time this session was created.- Overrides:
getCreatedin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getUpdated
The time of the last activity from this session.- Overrides:
getUpdatedin classDeviceSessionLogInfo- Returns:
- value for this field, or
nullif not present.
-
getSessionInfo
Mobile session unique id.- 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 MobileDeviceSessionLogInfo.Builder newBuilder(String deviceName, MobileClientPlatform clientType) Returns a new builder for creating an instance of this class.- Parameters:
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 classDeviceSessionLogInfo
-
equals
- Overrides:
equalsin classDeviceSessionLogInfo
-
toString
- Overrides:
toStringin classDeviceSessionLogInfo
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classDeviceSessionLogInfo- Returns:
- Formatted, multiline String representation of this object
-