public class DeviceSession
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | DeviceSession.BuilderBuilder for  DeviceSession. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.String | country | 
| protected java.util.Date | created | 
| protected java.lang.String | ipAddress | 
| protected java.lang.String | sessionId | 
| protected java.util.Date | updated | 
| Constructor and Description | 
|---|
| DeviceSession(java.lang.String sessionId)None | 
| DeviceSession(java.lang.String sessionId,
             java.lang.String ipAddress,
             java.lang.String country,
             java.util.Date created,
             java.util.Date updated)Use  newBuilderto create instances of this class without
 specifying values for all optional fields. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object obj) | 
| 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 | getIpAddress()The IP address of the last activity from this session. | 
| java.lang.String | getSessionId()The session id. | 
| java.util.Date | getUpdated()The time of the last activity from this session. | 
| int | hashCode() | 
| static DeviceSession.Builder | newBuilder(java.lang.String sessionId)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. | 
protected final java.lang.String sessionId
protected final java.lang.String ipAddress
protected final java.lang.String country
protected final java.util.Date created
protected final java.util.Date updated
public DeviceSession(java.lang.String sessionId,
                     java.lang.String ipAddress,
                     java.lang.String country,
                     java.util.Date created,
                     java.util.Date updated)
newBuilder to create instances of this class without
 specifying values for all optional fields.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.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.public DeviceSession(java.lang.String sessionId)
The default values for unset fields will be used.
sessionId - The session id. Must not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.public java.lang.String getSessionId()
null.public java.lang.String getIpAddress()
null if not present.public java.lang.String getCountry()
null if not present.public java.util.Date getCreated()
null if not present.public java.util.Date getUpdated()
null if not present.public static DeviceSession.Builder newBuilder(java.lang.String sessionId)
sessionId - The session id. Must not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringMultiline()
The returned String may contain newlines.