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