Package com.dropbox.core.v2.teamlog
Class MobileDeviceSessionLogInfo
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
-
- com.dropbox.core.v2.teamlog.MobileDeviceSessionLogInfo
-
public class MobileDeviceSessionLogInfo extends DeviceSessionLogInfo
Information about linked Dropbox mobile client sessions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MobileDeviceSessionLogInfo.Builder
Builder forMobileDeviceSessionLogInfo
.
-
Field Summary
Fields Modifier and Type Field Description protected MobileClientPlatform
clientType
protected java.lang.String
clientVersion
protected java.lang.String
deviceName
protected java.lang.String
lastCarrier
protected java.lang.String
osVersion
protected MobileSessionLogInfo
sessionInfo
-
Fields inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
created, ipAddress, updated
-
-
Constructor Summary
Constructors Constructor Description MobileDeviceSessionLogInfo(java.lang.String deviceName, MobileClientPlatform clientType)
Information about linked Dropbox mobile client sessionsMobileDeviceSessionLogInfo(java.lang.String deviceName, MobileClientPlatform clientType, java.lang.String ipAddress, java.util.Date created, java.util.Date updated, MobileSessionLogInfo sessionInfo, java.lang.String clientVersion, java.lang.String osVersion, java.lang.String lastCarrier)
Information about linked Dropbox mobile client sessions
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
MobileClientPlatform
getClientType()
The mobile application type.java.lang.String
getClientVersion()
The Dropbox client version.java.util.Date
getCreated()
The time this session was created.java.lang.String
getDeviceName()
The device name.java.lang.String
getIpAddress()
The IP address of the last activity from this session.java.lang.String
getLastCarrier()
last carrier used by the device.java.lang.String
getOsVersion()
The hosting OS version.MobileSessionLogInfo
getSessionInfo()
Mobile session unique id.java.util.Date
getUpdated()
The time of the last activity from this session.int
hashCode()
static MobileDeviceSessionLogInfo.Builder
newBuilder(java.lang.String deviceName, MobileClientPlatform clientType)
Returns a new builder for creating an instance of this class.java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.-
Methods inherited from class com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
newBuilder
-
-
-
-
Field Detail
-
sessionInfo
protected final MobileSessionLogInfo sessionInfo
-
deviceName
protected final java.lang.String deviceName
-
clientType
protected final MobileClientPlatform clientType
-
clientVersion
protected final java.lang.String clientVersion
-
osVersion
protected final java.lang.String osVersion
-
lastCarrier
protected final java.lang.String lastCarrier
-
-
Constructor Detail
-
MobileDeviceSessionLogInfo
public MobileDeviceSessionLogInfo(java.lang.String deviceName, MobileClientPlatform clientType, java.lang.String ipAddress, java.util.Date created, java.util.Date updated, MobileSessionLogInfo sessionInfo, java.lang.String clientVersion, java.lang.String osVersion, java.lang.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. Might be missing due to historical data gap.created
- The time this session was created. Might be missing due to historical data gap.updated
- The time of the last activity from this session. Might be missing due to historical data gap.sessionInfo
- Mobile session unique id. Might be missing due to historical data gap.clientVersion
- The Dropbox client version.osVersion
- The hosting OS version.lastCarrier
- last carrier used by the device.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
MobileDeviceSessionLogInfo
public MobileDeviceSessionLogInfo(java.lang.String deviceName, 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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getDeviceName
public java.lang.String getDeviceName()
The device name.- Returns:
- value for this field, never
null
.
-
getClientType
public MobileClientPlatform getClientType()
The mobile application type.- Returns:
- value for this field, never
null
.
-
getIpAddress
public java.lang.String getIpAddress()
The IP address of the last activity from this session. Might be missing due to historical data gap.- Overrides:
getIpAddress
in classDeviceSessionLogInfo
- Returns:
- value for this field, or
null
if not present.
-
getCreated
public java.util.Date getCreated()
The time this session was created. Might be missing due to historical data gap.- Overrides:
getCreated
in classDeviceSessionLogInfo
- Returns:
- value for this field, or
null
if not present.
-
getUpdated
public java.util.Date getUpdated()
The time of the last activity from this session. Might be missing due to historical data gap.- Overrides:
getUpdated
in classDeviceSessionLogInfo
- Returns:
- value for this field, or
null
if not present.
-
getSessionInfo
public MobileSessionLogInfo getSessionInfo()
Mobile session unique id. Might be missing due to historical data gap.- Returns:
- value for this field, or
null
if not present.
-
getClientVersion
public java.lang.String getClientVersion()
The Dropbox client version.- Returns:
- value for this field, or
null
if not present.
-
getOsVersion
public java.lang.String getOsVersion()
The hosting OS version.- Returns:
- value for this field, or
null
if not present.
-
getLastCarrier
public java.lang.String getLastCarrier()
last carrier used by the device.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public static MobileDeviceSessionLogInfo.Builder newBuilder(java.lang.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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDeviceSessionLogInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classDeviceSessionLogInfo
-
toString
public java.lang.String toString()
- Overrides:
toString
in classDeviceSessionLogInfo
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultiline
in classDeviceSessionLogInfo
- Returns:
- Formatted, multiline String representation of this object
-
-