Package com.flagright.api.types
Class DeviceData
- java.lang.Object
-
- com.flagright.api.types.DeviceData
-
public final class DeviceData extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceData.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceData.Builderbuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.String>getAppVersion()java.util.Optional<java.lang.Double>getBatteryLevel()java.util.Optional<java.lang.String>getDeviceIdentifier()java.util.Optional<java.lang.Double>getDeviceLatitude()java.util.Optional<java.lang.Double>getDeviceLongitude()java.util.Optional<java.lang.String>getDeviceMaker()java.util.Optional<java.lang.String>getDeviceModel()java.util.Optional<java.lang.String>getDeviceYear()java.util.Optional<java.lang.String>getIpAddress()java.util.Optional<CountryCode>getIpCountry()java.util.Optional<java.lang.String>getOperatingSystem()java.util.Optional<java.lang.Boolean>getVpnUsed()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getBatteryLevel
public java.util.Optional<java.lang.Double> getBatteryLevel()
- Returns:
- Battery level of the device used for a transaction or event at a given timestamp
-
getDeviceLatitude
public java.util.Optional<java.lang.Double> getDeviceLatitude()
- Returns:
- Device latitude at a give timestamp for an event or transaction
-
getDeviceLongitude
public java.util.Optional<java.lang.Double> getDeviceLongitude()
- Returns:
- Device longitude at a give timestamp for an event or transaction
-
getIpAddress
public java.util.Optional<java.lang.String> getIpAddress()
- Returns:
- IP address of the device at a given timestamp for an event or transaction
-
getIpCountry
public java.util.Optional<CountryCode> getIpCountry()
-
getDeviceIdentifier
public java.util.Optional<java.lang.String> getDeviceIdentifier()
- Returns:
- Device identifier number
-
getVpnUsed
public java.util.Optional<java.lang.Boolean> getVpnUsed()
- Returns:
- Whether VPN was used at a given timestamp for an event or transaction
-
getOperatingSystem
public java.util.Optional<java.lang.String> getOperatingSystem()
- Returns:
- Operating system of the device at a given timestamp for an event or transaction
-
getDeviceMaker
public java.util.Optional<java.lang.String> getDeviceMaker()
- Returns:
- The maker of the device at a given timestamp for an event or transaction
-
getDeviceModel
public java.util.Optional<java.lang.String> getDeviceModel()
- Returns:
- The model of the device at a given timestamp for an event or transaction
-
getDeviceYear
public java.util.Optional<java.lang.String> getDeviceYear()
- Returns:
- The year the device was manufactured at a given timestamp for an event or transaction
-
getAppVersion
public java.util.Optional<java.lang.String> getAppVersion()
- Returns:
- The version of the app your user is using on their device at a given timestamp for an event or transaction
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static DeviceData.Builder builder()
-
-