DataProvider

public final class DataProvider extends Object

Stores and provides all meta data from cloud json

Methods

getDataProvider

public static DataProvider getDataProvider()

Returns existing instance ofDataProvider.
Do not forget to callDataProviderbefore calling this api.

ReturnValue

Name Description
DataProvider

DataProvider

create

public static void create(Map<String, Vendor> vendors)

Creates an Object ofDataProviderwith all the data.

Parameters

Name Description
Map<String, Vendor> vendors

All the vendors Mapped with its unique id.

ReturnValue

Name Description
void

getGearComponent

public Component getGearComponent(int componentId, int vendorId, int productId, Revision version, String serialNumber)

Returns the gear Component object correspond to vendorId, productId.

Parameters

Name Description
int componentId

int component id.

int vendorId

int vendor id.

int productId

int product id.

Revision version

Revision object.

String serialNumber

String device serial number.

ReturnValue

Name Description
Component

Corresponding Componentor null if no matching component is found.

getTagComponent

public Component getTagComponent(DeviceInfo deviceInfo)

Returns the tag Component object.

Parameters

Name Description
DeviceInfo deviceInfo

DeviceInfo object.

ReturnValue

Name Description
Component