public class DesktopClientSession extends DeviceSession
Modifier and Type | Class and Description |
---|---|
static class |
DesktopClientSession.Builder
Builder for
DesktopClientSession . |
Modifier and Type | Field and Description |
---|---|
protected DesktopPlatform |
clientType |
protected String |
clientVersion |
protected String |
hostName |
protected boolean |
isDeleteOnUnlinkSupported |
protected String |
platform |
Constructor and Description |
---|
DesktopClientSession(String sessionId,
String hostName,
DesktopPlatform clientType,
String clientVersion,
String platform,
boolean isDeleteOnUnlinkSupported)
Information about linked Dropbox desktop client sessions
|
DesktopClientSession(String sessionId,
String hostName,
DesktopPlatform clientType,
String clientVersion,
String platform,
boolean isDeleteOnUnlinkSupported,
String ipAddress,
String country,
Date created,
Date updated)
Information about linked Dropbox desktop client sessions
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
DesktopPlatform |
getClientType()
The Dropbox desktop client 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 |
getHostName()
Name of the hosting desktop
|
String |
getIpAddress()
The IP address of the last activity from this session
|
boolean |
getIsDeleteOnUnlinkSupported()
Whether it's possible to delete all of the account files upon unlinking
|
String |
getPlatform()
Information on the hosting platform
|
String |
getSessionId()
The session id
|
Date |
getUpdated()
The time of the last activity from this session
|
int |
hashCode() |
static DesktopClientSession.Builder |
newBuilder(String sessionId,
String hostName,
DesktopPlatform clientType,
String clientVersion,
String platform,
boolean isDeleteOnUnlinkSupported)
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 hostName
protected final DesktopPlatform clientType
protected final String clientVersion
protected final String platform
protected final boolean isDeleteOnUnlinkSupported
public DesktopClientSession(String sessionId, String hostName, DesktopPlatform clientType, String clientVersion, String platform, boolean isDeleteOnUnlinkSupported, String ipAddress, String country, Date created, Date updated)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
sessionId
- The session id. Must not be null
.hostName
- Name of the hosting desktop. Must not be null
.clientType
- The Dropbox desktop client type. Must not be null
.clientVersion
- The Dropbox client version. Must not be null
.platform
- Information on the hosting platform. Must not be null
.isDeleteOnUnlinkSupported
- Whether it's possible to delete all of
the account files upon unlinking.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.IllegalArgumentException
- If any argument does not meet its
preconditions.public DesktopClientSession(String sessionId, String hostName, DesktopPlatform clientType, String clientVersion, String platform, boolean isDeleteOnUnlinkSupported)
The default values for unset fields will be used.
sessionId
- The session id. Must not be null
.hostName
- Name of the hosting desktop. Must not be null
.clientType
- The Dropbox desktop client type. Must not be null
.clientVersion
- The Dropbox client version. Must not be null
.platform
- Information on the hosting platform. Must not be null
.isDeleteOnUnlinkSupported
- Whether it's possible to delete all of
the account files upon unlinking.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getSessionId()
getSessionId
in class DeviceSession
null
.public String getHostName()
null
.public DesktopPlatform getClientType()
null
.public String getClientVersion()
null
.public String getPlatform()
null
.public boolean getIsDeleteOnUnlinkSupported()
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 static DesktopClientSession.Builder newBuilder(String sessionId, String hostName, DesktopPlatform clientType, String clientVersion, String platform, boolean isDeleteOnUnlinkSupported)
sessionId
- The session id. Must not be null
.hostName
- Name of the hosting desktop. Must not be null
.clientType
- The Dropbox desktop client type. Must not be null
.clientVersion
- The Dropbox client version. Must not be null
.platform
- Information on the hosting platform. Must not be null
.isDeleteOnUnlinkSupported
- Whether it's possible to delete all of
the account files upon unlinking.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