Record Class Device
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.Device
- Record Components:
confidence- A number representing the confidence that the device ID refers to a unique device as opposed to a cluster of similar devices. A confidence of 0.01 indicates very low confidence that the device is unique, whereas 99 indicates very high confidence.id- A UUID identifying the device associated with this IP address.lastSeen- The date and time of the last sighting of the device. This is an RFC 3339 date-time.localTime- The date and time of the transaction at the UTC offset associated with the device. This is an RFC 3339 date-time.
- All Implemented Interfaces:
JsonSerializable
public record Device(Double confidence, UUID id, String lastSeen, String localTime)
extends Record
implements JsonSerializable
This class contains minFraud response data related to the device.
In order to receive device output from minFraud Insights or minFraud Factors, you must be using the Device Tracking Add-on.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.getId()Deprecated, for removal: This API element is subject to removal in a future version.Useid()instead.Deprecated, for removal: This API element is subject to removal in a future version.UselastSeen()instead.Deprecated, for removal: This API element is subject to removal in a future version.UselocalTime()instead.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.lastSeen()Returns the value of thelastSeenrecord component.Returns the value of thelocalTimerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
Device
public Device()Constructs an instance ofDevicewith no data. -
Device
Creates an instance of aDevicerecord class.- Parameters:
confidence- the value for theconfidencerecord componentid- the value for theidrecord componentlastSeen- the value for thelastSeenrecord componentlocalTime- the value for thelocalTimerecord component
-
-
Method Details
-
getConfidence
Deprecated, for removal: This API element is subject to removal in a future version.Useconfidence()instead. This method will be removed in 5.0.0.- Returns:
- a number representing the confidence that the device ID refers to a unique device as opposed to a cluster of similar devices. A confidence of 0.01 indicates very low confidence that the device is unique, whereas 99 indicates very high confidence.
-
getId
Deprecated, for removal: This API element is subject to removal in a future version.Useid()instead. This method will be removed in 5.0.0.- Returns:
- A UUID identifying the device associated with this IP address.
-
getLastSeen
Deprecated, for removal: This API element is subject to removal in a future version.UselastSeen()instead. This method will be removed in 5.0.0.- Returns:
- The date and time of the last sighting of the device. This is an RFC 3339 date-time.
-
getLastSeenDateTime
- Returns:
- The date and time of the last sighting of the device as a
ZonedDateTime.
-
getLocalTime
Deprecated, for removal: This API element is subject to removal in a future version.UselocalTime()instead. This method will be removed in 5.0.0.- Returns:
- The date and time of the transaction at the UTC offset associated with the device. This is an RFC 3339 date-time.
-
getLocalDateTime
- Returns:
- The date and time of the transaction at the UTC offset associated with the device as
a
ZonedDateTime.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
confidence
Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
id
-
lastSeen
-
localTime
-
confidence()instead.