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 java.lang.String |
clientVersion |
protected java.lang.String |
hostName |
protected boolean |
isDeleteOnUnlinkSupported |
protected java.lang.String |
platform |
| Constructor and Description |
|---|
DesktopClientSession(java.lang.String sessionId,
java.lang.String hostName,
DesktopPlatform clientType,
java.lang.String clientVersion,
java.lang.String platform,
boolean isDeleteOnUnlinkSupported)
Information about linked Dropbox desktop client sessions.
|
DesktopClientSession(java.lang.String sessionId,
java.lang.String hostName,
DesktopPlatform clientType,
java.lang.String clientVersion,
java.lang.String platform,
boolean isDeleteOnUnlinkSupported,
java.lang.String ipAddress,
java.lang.String country,
java.util.Date created,
java.util.Date updated)
Information about linked Dropbox desktop client sessions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
DesktopPlatform |
getClientType()
The Dropbox desktop client type.
|
java.lang.String |
getClientVersion()
The Dropbox client version.
|
java.lang.String |
getCountry()
The country from which the last activity from this session was made.
|
java.util.Date |
getCreated()
The time this session was created.
|
java.lang.String |
getHostName()
Name of the hosting desktop.
|
java.lang.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.
|
java.lang.String |
getPlatform()
Information on the hosting platform.
|
java.lang.String |
getSessionId()
The session id.
|
java.util.Date |
getUpdated()
The time of the last activity from this session.
|
int |
hashCode() |
static DesktopClientSession.Builder |
newBuilder(java.lang.String sessionId,
java.lang.String hostName,
DesktopPlatform clientType,
java.lang.String clientVersion,
java.lang.String platform,
boolean isDeleteOnUnlinkSupported)
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.
|
newBuilderprotected final java.lang.String hostName
protected final DesktopPlatform clientType
protected final java.lang.String clientVersion
protected final java.lang.String platform
protected final boolean isDeleteOnUnlinkSupported
public DesktopClientSession(java.lang.String sessionId,
java.lang.String hostName,
DesktopPlatform clientType,
java.lang.String clientVersion,
java.lang.String platform,
boolean isDeleteOnUnlinkSupported,
java.lang.String ipAddress,
java.lang.String country,
java.util.Date created,
java.util.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.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public DesktopClientSession(java.lang.String sessionId,
java.lang.String hostName,
DesktopPlatform clientType,
java.lang.String clientVersion,
java.lang.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.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public java.lang.String getSessionId()
getSessionId in class DeviceSessionnull.public java.lang.String getHostName()
null.public DesktopPlatform getClientType()
null.public java.lang.String getClientVersion()
null.public java.lang.String getPlatform()
null.public boolean getIsDeleteOnUnlinkSupported()
public java.lang.String getIpAddress()
getIpAddress in class DeviceSessionnull if not present.public java.lang.String getCountry()
getCountry in class DeviceSessionnull if not present.public java.util.Date getCreated()
getCreated in class DeviceSessionnull if not present.public java.util.Date getUpdated()
getUpdated in class DeviceSessionnull if not present.public static DesktopClientSession.Builder newBuilder(java.lang.String sessionId, java.lang.String hostName, DesktopPlatform clientType, java.lang.String clientVersion, java.lang.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.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public int hashCode()
hashCode in class DeviceSessionpublic boolean equals(java.lang.Object obj)
equals in class DeviceSessionpublic java.lang.String toString()
toString in class DeviceSessionpublic java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline in class DeviceSession