public class MobileClientSession extends DeviceSession
Modifier and Type | Class and Description |
---|---|
static class |
MobileClientSession.Builder
Builder for
MobileClientSession . |
Modifier and Type | Field and Description |
---|---|
protected MobileClientPlatform |
clientType |
protected String |
clientVersion |
protected String |
deviceName |
protected String |
lastCarrier |
protected String |
osVersion |
Constructor and Description |
---|
MobileClientSession(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
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
MobileClientPlatform |
getClientType()
The mobile application type
|
String |
getClientVersion()
The dropbox client version
|
String |
getCountry()
The country from which the last activity from this session was made
|
Date |
getCreated()
The time this session was created
|
String |
getDeviceName()
The device name
|
String |
getIpAddress()
The IP address of the last activity from this session
|
String |
getLastCarrier()
last carrier used by the device
|
String |
getOsVersion()
The hosting OS version
|
String |
getSessionId()
The session id
|
Date |
getUpdated()
The time of the last activity from this session
|
int |
hashCode() |
static MobileClientSession.Builder |
newBuilder(String sessionId,
String deviceName,
MobileClientPlatform clientType)
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
newBuilder
protected final String deviceName
protected final MobileClientPlatform clientType
protected final String clientVersion
protected final String osVersion
protected final String lastCarrier
public MobileClientSession(String sessionId, String deviceName, MobileClientPlatform clientType, String ipAddress, String country, Date created, Date updated, String clientVersion, String osVersion, String lastCarrier)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
sessionId
- The session id. Must not be null
.deviceName
- The device name. Must not be null
.clientType
- The mobile application type. Must not be null
.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.IllegalArgumentException
- If any argument does not meet its
preconditions.public MobileClientSession(String sessionId, String deviceName, MobileClientPlatform clientType)
The default values for unset fields will be used.
sessionId
- The session id. Must not be null
.deviceName
- The device name. Must not be null
.clientType
- The mobile application type. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getSessionId()
getSessionId
in class DeviceSession
null
.public String getDeviceName()
null
.public MobileClientPlatform getClientType()
null
.public String getIpAddress()
getIpAddress
in class DeviceSession
null
if not present.public String getCountry()
getCountry
in class DeviceSession
null
if not present.public Date getCreated()
getCreated
in class DeviceSession
null
if not present.public Date getUpdated()
getUpdated
in class DeviceSession
null
if not present.public String getClientVersion()
null
if not present.public String getOsVersion()
null
if not present.public String getLastCarrier()
null
if not present.public static MobileClientSession.Builder newBuilder(String sessionId, String deviceName, MobileClientPlatform clientType)
sessionId
- The session id. Must not be null
.deviceName
- The device name. Must not be null
.clientType
- The mobile application type. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class DeviceSession
public boolean equals(Object obj)
equals
in class DeviceSession
public String toString()
toString
in class DeviceSession
public String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class DeviceSession