Package com.dropbox.core.v2.team
Class DesktopClientSession
- java.lang.Object
- 
- com.dropbox.core.v2.team.DeviceSession
- 
- com.dropbox.core.v2.team.DesktopClientSession
 
 
- 
 public class DesktopClientSession extends DeviceSession Information about linked Dropbox desktop client sessions.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDesktopClientSession.BuilderBuilder forDesktopClientSession.
 - 
Field SummaryFields Modifier and Type Field Description protected DesktopPlatformclientTypeprotected java.lang.StringclientVersionprotected java.lang.StringhostNameprotected booleanisDeleteOnUnlinkSupportedprotected java.lang.Stringplatform
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)DesktopPlatformgetClientType()The Dropbox desktop client type.java.lang.StringgetClientVersion()The Dropbox client version.java.lang.StringgetCountry()The country from which the last activity from this session was made.java.util.DategetCreated()The time this session was created.java.lang.StringgetHostName()Name of the hosting desktop.java.lang.StringgetIpAddress()The IP address of the last activity from this session.booleangetIsDeleteOnUnlinkSupported()Whether it's possible to delete all of the account files upon unlinking.java.lang.StringgetPlatform()Information on the hosting platform.java.lang.StringgetSessionId()The session id.java.util.DategetUpdated()The time of the last activity from this session.inthashCode()static DesktopClientSession.BuildernewBuilder(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.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.- 
Methods inherited from class com.dropbox.core.v2.team.DeviceSessionnewBuilder
 
- 
 
- 
- 
- 
Field Detail- 
hostNameprotected final java.lang.String hostName 
 - 
clientTypeprotected final DesktopPlatform clientType 
 - 
clientVersionprotected final java.lang.String clientVersion 
 - 
platformprotected final java.lang.String platform 
 - 
isDeleteOnUnlinkSupportedprotected final boolean isDeleteOnUnlinkSupported 
 
- 
 - 
Constructor Detail- 
DesktopClientSessionpublic 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.Use newBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.team.DesktopPlatform,java.lang.String,java.lang.String,boolean)to create instances of this class without specifying values for all optional fields.- Parameters:
- 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
DesktopClientSessionpublic 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.The default values for unset fields will be used. - Parameters:
- 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getSessionIdpublic java.lang.String getSessionId() The session id.- Overrides:
- getSessionIdin class- DeviceSession
- Returns:
- value for this field, never null.
 
 - 
getHostNamepublic java.lang.String getHostName() Name of the hosting desktop.- Returns:
- value for this field, never null.
 
 - 
getClientTypepublic DesktopPlatform getClientType() The Dropbox desktop client type.- Returns:
- value for this field, never null.
 
 - 
getClientVersionpublic java.lang.String getClientVersion() The Dropbox client version.- Returns:
- value for this field, never null.
 
 - 
getPlatformpublic java.lang.String getPlatform() Information on the hosting platform.- Returns:
- value for this field, never null.
 
 - 
getIsDeleteOnUnlinkSupportedpublic boolean getIsDeleteOnUnlinkSupported() Whether it's possible to delete all of the account files upon unlinking.- Returns:
- value for this field.
 
 - 
getIpAddresspublic java.lang.String getIpAddress() The IP address of the last activity from this session.- Overrides:
- getIpAddressin class- DeviceSession
- Returns:
- value for this field, or nullif not present.
 
 - 
getCountrypublic java.lang.String getCountry() The country from which the last activity from this session was made.- Overrides:
- getCountryin class- DeviceSession
- Returns:
- value for this field, or nullif not present.
 
 - 
getCreatedpublic java.util.Date getCreated() The time this session was created.- Overrides:
- getCreatedin class- DeviceSession
- Returns:
- value for this field, or nullif not present.
 
 - 
getUpdatedpublic java.util.Date getUpdated() The time of the last activity from this session.- Overrides:
- getUpdatedin class- DeviceSession
- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic 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.- Parameters:
- 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.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- DeviceSession
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- DeviceSession
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- DeviceSession
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Overrides:
- toStringMultilinein class- DeviceSession
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-