Package com.dropbox.core.v2.team
Class DeviceSession
- java.lang.Object
- 
- com.dropbox.core.v2.team.DeviceSession
 
- 
- Direct Known Subclasses:
- ActiveWebSession,- DesktopClientSession,- MobileClientSession
 
 public class DeviceSession extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDeviceSession.BuilderBuilder forDeviceSession.
 - 
Constructor SummaryConstructors Constructor Description DeviceSession(java.lang.String sessionId)NoneDeviceSession(java.lang.String sessionId, java.lang.String ipAddress, java.lang.String country, java.util.Date created, java.util.Date updated)UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)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.StringgetIpAddress()The IP address of the last activity from this session.java.lang.StringgetSessionId()The session id.java.util.DategetUpdated()The time of the last activity from this session.inthashCode()static DeviceSession.BuildernewBuilder(java.lang.String sessionId)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.
 
- 
- 
- 
Constructor Detail- 
DeviceSessionpublic DeviceSession(java.lang.String sessionId, java.lang.String ipAddress, java.lang.String country, java.util.Date created, java.util.Date updated)UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
- sessionId- The session id. 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
DeviceSessionpublic DeviceSession(java.lang.String sessionId) NoneThe default values for unset fields will be used. - Parameters:
- sessionId- The session id. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getSessionIdpublic java.lang.String getSessionId() The session id.- Returns:
- value for this field, never null.
 
 - 
getIpAddresspublic java.lang.String getIpAddress() The IP address of the last activity from this session.- 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.- Returns:
- value for this field, or nullif not present.
 
 - 
getCreatedpublic java.util.Date getCreated() The time this session was created.- Returns:
- value for this field, or nullif not present.
 
 - 
getUpdatedpublic java.util.Date getUpdated() The time of the last activity from this session.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static DeviceSession.Builder newBuilder(java.lang.String sessionId) Returns a new builder for creating an instance of this class.- Parameters:
- sessionId- The session id. Must not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-