public class ThirdPartyHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<Integer> |
OEM_DEVICE_TYPES
Third-party device types.
|
static Map<Integer,String> |
THIRD_PARTY_DEVICE_TYPES
OEM device types.
|
| Constructor and Description |
|---|
ThirdPartyHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getThirdPartyProductId(String value)
Gets the third-party product ID from a serial number or device prefix.
|
static boolean |
isOemDevice(int productId)
Checks if a product ID is a supported OEM device type.
|
static boolean |
isThirdPartyDevice(int productId)
Checks if a product ID is a supported third-party device type.
|
static boolean |
isThirdPartyDevice(String value)
Checks if a serial number or device prefix is a supported third-party device type.
|
static boolean |
isThirdPartyVehicleDevice(int productId)
Determines whether [is third party vehicle device] [the specified product identifier].
|
public static final Map<Integer,String> THIRD_PARTY_DEVICE_TYPES
public static int getThirdPartyProductId(String value)
value - The serial number or device prefix.public static boolean isThirdPartyVehicleDevice(int productId)
productId - the product identifier.public static boolean isThirdPartyDevice(String value)
value - The serial number or device prefix.public static boolean isThirdPartyDevice(int productId)
productId - The product ID.public static boolean isOemDevice(int productId)
productId - The product ID.Copyright © 2023. All rights reserved.