public class Device extends AbstractModel
Constructor and Description |
---|
Device() |
Device(Device source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getDeviceId()
Get *In beta test.
|
String |
getIDFA()
Get **For iOS devices**: this field indicates the identifier for advertisers **(IDFA)** of the business user, which is provided by Apple to identify the user and contains a hexadecimal string of 32 digits and letters.
Note: as iOS 14 has been updated by Apple to allow users to manually enable or disable IDFA since 2021, the validity of this string may be reduced. |
String |
getIDFV()
Get **For iOS devices**: this field indicates the identifier for vendors **(IDFV)** of the business user, which is provided by Apple to identify the app vendor and contains a hexadecimal string of 32 digits and letters.
|
String |
getIMEI()
Get This field indicates the international mobile equipment identity **(IMEI)** number of the business user's device, which can be used to identify each mobile communication device such as mobile phone for easier device identification and management.
Note: the format is **15–17 digits**. |
String |
getIp()
Get This field indicates the IP address of the business user's device and supports recording both **IPv4 and IPv6** addresses.
|
Long |
getIpType()
Get This field indicates the type of the recorded IP address.
|
String |
getMac()
Get This field indicates the MAC address of the business user, which makes it easier to identify and manage devices.
|
String |
getTokenId()
Get *In beta test.
|
void |
setDeviceId(String DeviceId)
Set *In beta test.
|
void |
setIDFA(String IDFA)
Set **For iOS devices**: this field indicates the identifier for advertisers **(IDFA)** of the business user, which is provided by Apple to identify the user and contains a hexadecimal string of 32 digits and letters.
Note: as iOS 14 has been updated by Apple to allow users to manually enable or disable IDFA since 2021, the validity of this string may be reduced. |
void |
setIDFV(String IDFV)
Set **For iOS devices**: this field indicates the identifier for vendors **(IDFV)** of the business user, which is provided by Apple to identify the app vendor and contains a hexadecimal string of 32 digits and letters.
|
void |
setIMEI(String IMEI)
Set This field indicates the international mobile equipment identity **(IMEI)** number of the business user's device, which can be used to identify each mobile communication device such as mobile phone for easier device identification and management.
Note: the format is **15–17 digits**. |
void |
setIp(String Ip)
Set This field indicates the IP address of the business user's device and supports recording both **IPv4 and IPv6** addresses.
|
void |
setIpType(Long IpType)
Set This field indicates the type of the recorded IP address.
|
void |
setMac(String Mac)
Set This field indicates the MAC address of the business user, which makes it easier to identify and manage devices.
|
void |
setTokenId(String TokenId)
Set *In beta test.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Device()
public Device(Device source)
public String getIp()
public void setIp(String Ip)
Ip
- This field indicates the IP address of the business user's device and supports recording both **IPv4 and IPv6** addresses. It needs to be used together with the `IpType` parameter.public String getMac()
public void setMac(String Mac)
Mac
- This field indicates the MAC address of the business user, which makes it easier to identify and manage devices. Its format and value are the same as those of a standard MAC address.public String getTokenId()
public void setTokenId(String TokenId)
TokenId
- *In beta test. Stay tuned.*public String getDeviceId()
public void setDeviceId(String DeviceId)
DeviceId
- *In beta test. Stay tuned.*public String getIMEI()
public void setIMEI(String IMEI)
IMEI
- This field indicates the international mobile equipment identity **(IMEI)** number of the business user's device, which can be used to identify each mobile communication device such as mobile phone for easier device identification and management.public String getIDFA()
public void setIDFA(String IDFA)
IDFA
- **For iOS devices**: this field indicates the identifier for advertisers **(IDFA)** of the business user, which is provided by Apple to identify the user and contains a hexadecimal string of 32 digits and letters.public String getIDFV()
public void setIDFV(String IDFV)
IDFV
- **For iOS devices**: this field indicates the identifier for vendors **(IDFV)** of the business user, which is provided by Apple to identify the app vendor and contains a hexadecimal string of 32 digits and letters. It can be used to uniquely identify a device.public Long getIpType()
public void setIpType(Long IpType)
IpType
- This field indicates the type of the recorded IP address. Valid values: **0** (IPv4 address), **1** (IPv6 address). It needs to be used together with the `IpType` parameter.Copyright © 2023. All rights reserved.