Constructor.
Namespace:
MaxMind.MinFraud.Request
Assembly:
MaxMind.MinFraud (in MaxMind.MinFraud.dll) Version: 2.0.0
Syntaxpublic Device(
IPAddress ipAddress,
string userAgent = null,
string acceptLanguage = null,
Nullable<double> sessionAge = null,
string sessionId = null
)
Public Sub New (
ipAddress As IPAddress,
Optional userAgent As String = Nothing,
Optional acceptLanguage As String = Nothing,
Optional sessionAge As Nullable(Of Double) = Nothing,
Optional sessionId As String = Nothing
)
public:
Device(
IPAddress^ ipAddress,
String^ userAgent = nullptr,
String^ acceptLanguage = nullptr,
Nullable<double> sessionAge = nullptr,
String^ sessionId = nullptr
)
new :
ipAddress : IPAddress *
?userAgent : string *
?acceptLanguage : string *
?sessionAge : Nullable<float> *
?sessionId : string
(* Defaults:
let _userAgent = defaultArg userAgent null
let _acceptLanguage = defaultArg acceptLanguage null
let _sessionAge = defaultArg sessionAge null
let _sessionId = defaultArg sessionId null
*)
-> Device
Parameters
- ipAddress
- Type: System.NetIPAddress
The IP address associated with the device
used by the customer in the transaction. - userAgent (Optional)
- Type: SystemString
The HTTP “User-Agent” header of the
browser used in the transaction. - acceptLanguage (Optional)
- Type: SystemString
The HTTP “Accept-Language” header of
the device used in the transaction. - sessionAge (Optional)
- Type: SystemNullableDouble
The number of seconds between the
creation of the user's session and the time of the transaction.
Note that sessionAge is not the duration of the current visit, but
the time since the start of the first visit. - sessionId (Optional)
- Type: SystemString
A string up to 255 characters in length.
This is an ID that uniquely identifies a visitor's session on the
site.
See Also