Constructor and Description |
---|
Builder(InetAddress ipAddress)
The constructor for the
Device.Builder class |
Modifier and Type | Method and Description |
---|---|
Device.Builder |
acceptLanguage(String acceptLanguage) |
Device |
build() |
Device.Builder |
sessionAge(Double sessionAge) |
Device.Builder |
sessionId(String sessionId) |
Device.Builder |
userAgent(String ua) |
public Builder(InetAddress ipAddress)
Device.Builder
classipAddress
- The IP address associated with the device used
by the customer in the transaction.public Device.Builder userAgent(String ua)
ua
- The HTTP “User-Agent” header of the browser used in
the transaction.public Device.Builder acceptLanguage(String acceptLanguage)
acceptLanguage
- The HTTP “Accept-Language” header of the
device used in the transaction.public Device.Builder sessionAge(Double sessionAge)
sessionAge
- The number of seconds between the creation of the
user's session and the time of the transaction.
Note that session_age is not the duration of the
current visit, but the time since the start of the
first visit.public Device.Builder sessionId(String sessionId)
sessionId
- A string up to 255 characters in length. This is
an ID which uniquely identifies a visitor's
session on the site.public Device build()
Device
created from the
fields set on this builder.Copyright © 2019 MaxMind, Inc.. All rights reserved.