public static class MobileClientSession.Builder extends DeviceSession.Builder
MobileClientSession
.Modifier and Type | Field and Description |
---|---|
protected MobileClientPlatform |
clientType |
protected java.lang.String |
clientVersion |
protected java.lang.String |
deviceName |
protected java.lang.String |
lastCarrier |
protected java.lang.String |
osVersion |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String sessionId,
java.lang.String deviceName,
MobileClientPlatform clientType) |
Modifier and Type | Method and Description |
---|---|
MobileClientSession |
build()
Builds an instance of
MobileClientSession configured with
this builder's values |
MobileClientSession.Builder |
withClientVersion(java.lang.String clientVersion)
Set value for optional field.
|
MobileClientSession.Builder |
withCountry(java.lang.String country)
Set value for optional field.
|
MobileClientSession.Builder |
withCreated(java.util.Date created)
Set value for optional field.
|
MobileClientSession.Builder |
withIpAddress(java.lang.String ipAddress)
Set value for optional field.
|
MobileClientSession.Builder |
withLastCarrier(java.lang.String lastCarrier)
Set value for optional field.
|
MobileClientSession.Builder |
withOsVersion(java.lang.String osVersion)
Set value for optional field.
|
MobileClientSession.Builder |
withUpdated(java.util.Date updated)
Set value for optional field.
|
protected final java.lang.String deviceName
protected final MobileClientPlatform clientType
protected java.lang.String clientVersion
protected java.lang.String osVersion
protected java.lang.String lastCarrier
protected Builder(java.lang.String sessionId, java.lang.String deviceName, MobileClientPlatform clientType)
public MobileClientSession.Builder withClientVersion(java.lang.String clientVersion)
clientVersion
- The dropbox client version.public MobileClientSession.Builder withOsVersion(java.lang.String osVersion)
osVersion
- The hosting OS version.public MobileClientSession.Builder withLastCarrier(java.lang.String lastCarrier)
lastCarrier
- last carrier used by the device.public MobileClientSession.Builder withIpAddress(java.lang.String ipAddress)
withIpAddress
in class DeviceSession.Builder
ipAddress
- The IP address of the last activity from this
session.public MobileClientSession.Builder withCountry(java.lang.String country)
withCountry
in class DeviceSession.Builder
country
- The country from which the last activity from this
session was made.public MobileClientSession.Builder withCreated(java.util.Date created)
withCreated
in class DeviceSession.Builder
created
- The time this session was created.public MobileClientSession.Builder withUpdated(java.util.Date updated)
withUpdated
in class DeviceSession.Builder
updated
- The time of the last activity from this session.public MobileClientSession build()
MobileClientSession
configured with
this builder's valuesbuild
in class DeviceSession.Builder
MobileClientSession